diff --git a/buf.gen.yaml b/buf.gen.yaml index 7c2e16bf..342bee2b 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,4 +1,4 @@ version: v2 plugins: - - remote: buf.build/protocolbuffers/java:v25.3 + - remote: buf.build/protocolbuffers/java:v27.3 out: src/main/java diff --git a/conformance/buf.gen.yaml b/conformance/buf.gen.yaml index 3176e378..1efd0994 100644 --- a/conformance/buf.gen.yaml +++ b/conformance/buf.gen.yaml @@ -5,5 +5,5 @@ managed: - file_option: java_package_prefix value: build plugins: - - remote: buf.build/protocolbuffers/java:v25.3 + - remote: buf.build/protocolbuffers/java:v27.3 out: src/main/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 index f3824e4d..60efd18f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnEnum.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnEnum.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** @@ -24,6 +25,15 @@ public enum AnEnum UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnEnum.class.getName()); + } /** * AN_ENUM_UNSPECIFIED = 0; */ 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 index 77a68e84..3f9fccbf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyIn.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.AnyIn} */ public final class AnyIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnyIn.class.getName()); + } // Use AnyIn.newBuilder() to construct. - private AnyIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnyIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AnyIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.AnyIn parseFrom( } public static build.buf.validate.conformance.cases.AnyIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.AnyIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.AnyIn result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.AnyIn) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { /** * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyIn) } 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 index 6952ed6c..54afd072 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface AnyInOrBuilder extends 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 index 87bcf91f..c8f4d234 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.AnyNone} */ public final class AnyNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnyNone.class.getName()); + } // Use AnyNone.newBuilder() to construct. - private AnyNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnyNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AnyNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.AnyNone parseFrom( } public static build.buf.validate.conformance.cases.AnyNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.AnyNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.AnyNone result) result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.AnyNone) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { /** * .google.protobuf.Any val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyNone) } 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 index e040b04a..65e31dfc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface AnyNoneOrBuilder extends 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 index 3d046851..a2ed76aa 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotIn.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.AnyNotIn} */ public final class AnyNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnyNotIn.class.getName()); + } // Use AnyNotIn.newBuilder() to construct. - private AnyNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnyNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AnyNotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.AnyNotIn parseFrom( } public static build.buf.validate.conformance.cases.AnyNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.AnyNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.AnyNotIn result) result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.AnyNotIn) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { /** * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyNotIn) } 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 index 536bec17..4f219208 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface AnyNotInOrBuilder extends 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 index cd546b23..e8745e2a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequired.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.AnyRequired} */ public final class AnyRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnyRequired.class.getName()); + } // Use AnyRequired.newBuilder() to construct. - private AnyRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnyRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AnyRequired() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.AnyRequired parseFrom( } public static build.buf.validate.conformance.cases.AnyRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.AnyRequired parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.AnyRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.AnyRequired resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.AnyRequired) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { /** * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.AnyOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyRequired) } 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 index 6d5c089f..2b047b41 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface AnyRequiredOrBuilder extends 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 index 6a12f6e5..3e0fd3e7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalse.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalse.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BoolConstFalse} */ public final class BoolConstFalse extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BoolConstFalse.class.getName()); + } // Use BoolConstFalse.newBuilder() to construct. - private BoolConstFalse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BoolConstFalse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BoolConstFalse() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BoolConstFalse parseFrom( } public static build.buf.validate.conformance.cases.BoolConstFalse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BoolConstFalse parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BoolConstFalse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BoolConstFalse r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BoolConstFalse) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolConstFalse) } 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 index 510f86c0..4c16707a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalseOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalseOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BoolConstFalseOrBuilder extends 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 index 5a4743cf..85102d77 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrue.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrue.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BoolConstTrue} */ public final class BoolConstTrue extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BoolConstTrue.class.getName()); + } // Use BoolConstTrue.newBuilder() to construct. - private BoolConstTrue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BoolConstTrue(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BoolConstTrue() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BoolConstTrue parseFrom( } public static build.buf.validate.conformance.cases.BoolConstTrue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BoolConstTrue parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BoolConstTrue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BoolConstTrue re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BoolConstTrue) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolConstTrue) } 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 index 842afb27..5befe12a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrueOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrueOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BoolConstTrueOrBuilder extends 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 index 149e94ea..6eb25c79 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BoolNone} */ public final class BoolNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BoolNone.class.getName()); + } // Use BoolNone.newBuilder() to construct. - private BoolNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BoolNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BoolNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BoolNone parseFrom( } public static build.buf.validate.conformance.cases.BoolNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BoolNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BoolNone result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BoolNone) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolNone) } 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 index 2df41df0..dea2f1e6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BoolNoneOrBuilder extends 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 index 580deb74..d83eb264 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BoolProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,17 +28,17 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_BoolNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -59,27 +69,28 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_BoolNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_BoolConstFalse_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index 1a32ace4..0bbdb47c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConst.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesConst} */ public final class BytesConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesConst.class.getName()); + } // Use BytesConst.newBuilder() to construct. - private BytesConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesConst() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesConst(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesConst parseFrom( } public static build.buf.validate.conformance.cases.BytesConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesConst resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesConst) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesConst) } 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 index 356c1431..304d821d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConstOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesConstOrBuilder extends 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 index 84df64a5..d0b9e256 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContains.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContains.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesContains} */ public final class BytesContains extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesContains.class.getName()); + } // Use BytesContains.newBuilder() to construct. - private BytesContains(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesContains(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesContains() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesContains(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesContains parseFrom( } public static build.buf.validate.conformance.cases.BytesContains parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesContains parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesContains} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesContains re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesContains) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesContains) } 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 index 1645b372..27945736 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContainsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContainsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesContainsOrBuilder extends 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 index c1353965..e225e333 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesEqualMinMaxLen} */ public final class BytesEqualMinMaxLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesEqualMinMaxLen.class.getName()); + } // Use BytesEqualMinMaxLen.newBuilder() to construct. - private BytesEqualMinMaxLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesEqualMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesEqualMinMaxLen() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesEqualMinMaxLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen parseFrom } public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesEqualMinMaxLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesEqualMinMax } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesEqualMinMaxLen) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesEqualMinMaxLen) } 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 index a9f04774..08ad52fb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesEqualMinMaxLenOrBuilder extends 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 index 584c4646..0341f4f1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIP.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIP.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesIP} */ public final class BytesIP extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesIP.class.getName()); + } // Use BytesIP.newBuilder() to construct. - private BytesIP(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesIP(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesIP() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesIP(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesIP parseFrom( } public static build.buf.validate.conformance.cases.BytesIP parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesIP} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesIP result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesIP) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIP) } 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 index 005475a7..aa5c60a1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesIPOrBuilder extends 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 index ed06bfee..a6d9d0b1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesIPv4} */ public final class BytesIPv4 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesIPv4.class.getName()); + } // Use BytesIPv4.newBuilder() to construct. - private BytesIPv4(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesIPv4(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesIPv4() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesIPv4(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesIPv4 parseFrom( } public static build.buf.validate.conformance.cases.BytesIPv4 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesIPv4} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesIPv4 result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesIPv4) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIPv4) } 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 index 939b6a0c..c5407b03 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesIPv4OrBuilder extends 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 index 2543d69d..4297d2c8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesIPv6} */ public final class BytesIPv6 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesIPv6.class.getName()); + } // Use BytesIPv6.newBuilder() to construct. - private BytesIPv6(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesIPv6(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesIPv6() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesIPv6(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesIPv6 parseFrom( } public static build.buf.validate.conformance.cases.BytesIPv6 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesIPv6} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesIPv6 result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesIPv6) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIPv6) } 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 index ba6b529c..fede7d33 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6Ignore.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesIPv6Ignore} */ public final class BytesIPv6Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesIPv6Ignore.class.getName()); + } // Use BytesIPv6Ignore.newBuilder() to construct. - private BytesIPv6Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesIPv6Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesIPv6Ignore() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesIPv6Ignore(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesIPv6Ignore parseFrom( } public static build.buf.validate.conformance.cases.BytesIPv6Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesIPv6Ignore parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesIPv6Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesIPv6Ignore } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesIPv6Ignore) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIPv6Ignore) } 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 index 16b12437..509fbc62 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesIPv6IgnoreOrBuilder extends 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 index 0080fb14..dae3fd9b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesIPv6OrBuilder extends 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 index 2fd51f25..86219c03 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesIn} */ public final class BytesIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesIn.class.getName()); + } // Use BytesIn.newBuilder() to construct. - private BytesIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesIn() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesIn parseFrom( } public static build.buf.validate.conformance.cases.BytesIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesIn result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIn) } 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 index 442db076..903f2caf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesInOrBuilder extends 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 index 791ba12e..57c679fe 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesLen} */ public final class BytesLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesLen.class.getName()); + } // Use BytesLen.newBuilder() to construct. - private BytesLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesLen() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesLen parseFrom( } public static build.buf.validate.conformance.cases.BytesLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesLen result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesLen) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesLen) } 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 index e16b26a2..23bab342 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesLenOrBuilder extends 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 index 7d41f896..ad81b914 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesMaxLen} */ public final class BytesMaxLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesMaxLen.class.getName()); + } // Use BytesMaxLen.newBuilder() to construct. - private BytesMaxLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesMaxLen() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesMaxLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesMaxLen parseFrom( } public static build.buf.validate.conformance.cases.BytesMaxLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesMaxLen parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesMaxLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesMaxLen resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesMaxLen) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesMaxLen) } 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 index 1649f16b..7fc9e6cc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesMaxLenOrBuilder extends 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 index 166d9265..b4907459 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesMinLen} */ public final class BytesMinLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesMinLen.class.getName()); + } // Use BytesMinLen.newBuilder() to construct. - private BytesMinLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesMinLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesMinLen() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesMinLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesMinLen parseFrom( } public static build.buf.validate.conformance.cases.BytesMinLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesMinLen parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesMinLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesMinLen resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesMinLen) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesMinLen) } 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 index 36bde2b1..e1232e73 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesMinLenOrBuilder extends 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 index 01f7d43c..bf92ed32 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesMinMaxLen} */ public final class BytesMinMaxLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesMinMaxLen.class.getName()); + } // Use BytesMinMaxLen.newBuilder() to construct. - private BytesMinMaxLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesMinMaxLen() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesMinMaxLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesMinMaxLen parseFrom( } public static build.buf.validate.conformance.cases.BytesMinMaxLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesMinMaxLen parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesMinMaxLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesMinMaxLen r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesMinMaxLen) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesMinMaxLen) } 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 index 988a93c7..248054a0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesMinMaxLenOrBuilder extends 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 index 29ae2a85..5717d634 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNone.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesNone} */ public final class BytesNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesNone.class.getName()); + } // Use BytesNone.newBuilder() to construct. - private BytesNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesNone() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesNone(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesNone parseFrom( } public static build.buf.validate.conformance.cases.BytesNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesNone result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesNone) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNone) } 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 index f741da34..b5fe6d3f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesNoneOrBuilder extends 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 index 3a0735d0..87544747 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesNotIn} */ public final class BytesNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesNotIn.class.getName()); + } // Use BytesNotIn.newBuilder() to construct. - private BytesNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesNotIn() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesNotIn parseFrom( } public static build.buf.validate.conformance.cases.BytesNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesNotIn resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesNotIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNotIn) } 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 index 329f2cc6..a776b24e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesNotInOrBuilder extends 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 index a6747f00..c227ad78 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPattern.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPattern.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesPattern} */ public final class BytesPattern extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesPattern.class.getName()); + } // Use BytesPattern.newBuilder() to construct. - private BytesPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesPattern(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesPattern() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesPattern(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesPattern parseFrom( } public static build.buf.validate.conformance.cases.BytesPattern parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesPattern parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesPattern} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesPattern res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesPattern) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesPattern) } 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 index 0562bbed..2a981336 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPatternOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPatternOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesPatternOrBuilder extends 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 index 3088700f..77d8ad0b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesPrefix} */ public final class BytesPrefix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesPrefix.class.getName()); + } // Use BytesPrefix.newBuilder() to construct. - private BytesPrefix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesPrefix() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesPrefix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesPrefix parseFrom( } public static build.buf.validate.conformance.cases.BytesPrefix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesPrefix parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesPrefix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesPrefix resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesPrefix) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesPrefix) } 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 index 7cdf065f..88a1a486 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesPrefixOrBuilder extends 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 index f86278ce..9e9ce2a6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,87 +28,87 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_BytesNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_BytesIPv4_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_BytesIPv6_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_BytesIPv6Ignore_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -145,111 +155,112 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_BytesNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_BytesIP_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index f5dccbfd..0f568f05 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.BytesSuffix} */ public final class BytesSuffix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesSuffix.class.getName()); + } // Use BytesSuffix.newBuilder() to construct. - private BytesSuffix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesSuffix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesSuffix() { val_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesSuffix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.BytesSuffix parseFrom( } public static build.buf.validate.conformance.cases.BytesSuffix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.BytesSuffix parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.BytesSuffix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.BytesSuffix resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.BytesSuffix) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesSuffix) } 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 index a87b473b..586a6e66 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface BytesSuffixOrBuilder extends 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 index 0ad8f0a8..d4a5471b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestEnum.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestEnum.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** @@ -24,6 +25,15 @@ public enum ComplexTestEnum UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + ComplexTestEnum.class.getName()); + } /** * COMPLEX_TEST_ENUM_UNSPECIFIED = 0; */ 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 index aa103bf4..8cd12fac 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsg.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsg.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.ComplexTestMsg} */ public final class ComplexTestMsg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + ComplexTestMsg.class.getName()); + } // Use ComplexTestMsg.newBuilder() to construct. - private ComplexTestMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ComplexTestMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ComplexTestMsg() { @@ -23,13 +33,6 @@ private ComplexTestMsg() { bytesVal_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ComplexTestMsg(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor; @@ -48,7 +51,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -573,8 +576,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(const_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, const_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, const_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNested()); @@ -612,7 +615,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < repTsVal_.size(); i++) { output.writeMessage(13, repTsVal_.get(i)); } - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetMapVal(), @@ -622,7 +625,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBytes(15, bytesVal_); } if (oCase_ == 16) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, o_); + com.google.protobuf.GeneratedMessage.writeString(output, 16, o_); } if (oCase_ == 17) { output.writeInt32( @@ -637,8 +640,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(const_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, const_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, const_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -703,7 +706,7 @@ public int getSerializedSize() { .computeBytesSize(15, bytesVal_); } if (oCase_ == 16) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, o_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, o_); } if (oCase_ == 17) { size += com.google.protobuf.CodedOutputStream @@ -898,20 +901,20 @@ public static build.buf.validate.conformance.cases.ComplexTestMsg parseFrom( } public static build.buf.validate.conformance.cases.ComplexTestMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -919,20 +922,20 @@ public static build.buf.validate.conformance.cases.ComplexTestMsg parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -952,7 +955,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -960,7 +963,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.ComplexTestMsg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -991,7 +994,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1004,12 +1007,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getNestedFieldBuilder(); getFloatValFieldBuilder(); @@ -1188,38 +1191,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.ComplexTest result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.ComplexTestMsg) { @@ -1289,7 +1260,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.ComplexTestMsg oth repTsVal_ = other.repTsVal_; bitField0_ = (bitField0_ & ~0x00001000); repTsValBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepTsValFieldBuilder() : null; } else { repTsValBuilder_.addAllMessages(other.repTsVal_); @@ -1558,7 +1529,7 @@ public Builder setConstBytes( } private build.buf.validate.conformance.cases.ComplexTestMsg nested_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -1664,11 +1635,11 @@ public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getNestedOrB /** * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> getNestedFieldBuilder() { if (nestedBuilder_ == null) { - nestedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1743,7 +1714,7 @@ public Builder clearBoolConst() { } private com.google.protobuf.FloatValue floatVal_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1849,11 +1820,11 @@ public com.google.protobuf.FloatValueOrBuilder getFloatValOrBuilder() { /** * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> getFloatValFieldBuilder() { if (floatValBuilder_ == null) { - floatValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + floatValBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( getFloatVal(), getParentForChildren(), @@ -1864,7 +1835,7 @@ public com.google.protobuf.FloatValueOrBuilder getFloatValOrBuilder() { } private com.google.protobuf.Duration durVal_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1970,11 +1941,11 @@ public com.google.protobuf.DurationOrBuilder getDurValOrBuilder() { /** * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurValFieldBuilder() { if (durValBuilder_ == null) { - durValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + durValBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDurVal(), getParentForChildren(), @@ -1985,7 +1956,7 @@ public com.google.protobuf.DurationOrBuilder getDurValOrBuilder() { } private com.google.protobuf.Timestamp tsVal_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -2091,11 +2062,11 @@ public com.google.protobuf.TimestampOrBuilder getTsValOrBuilder() { /** * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTsValFieldBuilder() { if (tsValBuilder_ == null) { - tsValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + tsValBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTsVal(), getParentForChildren(), @@ -2106,7 +2077,7 @@ public com.google.protobuf.TimestampOrBuilder getTsValOrBuilder() { } private build.buf.validate.conformance.cases.ComplexTestMsg another_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -2212,11 +2183,11 @@ public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getAnotherOr /** * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> getAnotherFieldBuilder() { if (anotherBuilder_ == null) { - anotherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2344,7 +2315,7 @@ public Builder clearEnumConst() { } private com.google.protobuf.Any anyVal_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -2450,11 +2421,11 @@ public com.google.protobuf.AnyOrBuilder getAnyValOrBuilder() { /** * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getAnyValFieldBuilder() { if (anyValBuilder_ == null) { - anyValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + anyValBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getAnyVal(), getParentForChildren(), @@ -2473,7 +2444,7 @@ private void ensureRepTsValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> repTsValBuilder_; /** @@ -2689,11 +2660,11 @@ public com.google.protobuf.Timestamp.Builder addRepTsValBuilder( getRepTsValBuilderList() { return getRepTsValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getRepTsValFieldBuilder() { if (repTsValBuilder_ == null) { - repTsValBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + repTsValBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( repTsVal_, ((bitField0_ & 0x00001000) != 0), @@ -2997,18 +2968,6 @@ public Builder clearY() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.ComplexTestMsg) } 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 index 0929e788..2ae94ac1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsgOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsgOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface ComplexTestMsgOrBuilder extends 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 index d41b1e01..69cb6903 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConst.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleConst} */ public final class DoubleConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleConst.class.getName()); + } // Use DoubleConst.newBuilder() to construct. - private DoubleConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleConst() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleConst parseFrom( } public static build.buf.validate.conformance.cases.DoubleConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleConst parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleConst resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleConst) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleConst) } 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 index 534ae50d..8a7f46b3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleConstOrBuilder extends 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 index 5e36c01d..6387db97 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleExGTELTE} */ public final class DoubleExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleExGTELTE.class.getName()); + } // Use DoubleExGTELTE.newBuilder() to construct. - private DoubleExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.DoubleExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleExGTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleExGTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleExGTELTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleExGTELTE) } 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 index bfc9b13a..6c809479 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleExGTELTEOrBuilder extends 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 index 75c77a3d..1a399ed4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleExLTGT} */ public final class DoubleExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleExLTGT.class.getName()); + } // Use DoubleExLTGT.newBuilder() to construct. - private DoubleExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleExLTGT parseFrom( } public static build.buf.validate.conformance.cases.DoubleExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleExLTGT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleExLTGT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleExLTGT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleExLTGT) } 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 index 6d283e38..4600bf89 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleExLTGTOrBuilder extends 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 index 02759233..6f11d870 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFinite.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFinite.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleFinite} */ public final class DoubleFinite extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleFinite.class.getName()); + } // Use DoubleFinite.newBuilder() to construct. - private DoubleFinite(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleFinite(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleFinite() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleFinite parseFrom( } public static build.buf.validate.conformance.cases.DoubleFinite parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleFinite parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleFinite} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleFinite res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleFinite) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleFinite) } 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 index b18d864e..04fd753b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFiniteOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFiniteOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleFiniteOrBuilder extends 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 index 1652b3bd..8c11485c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleGT} */ public final class DoubleGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleGT.class.getName()); + } // Use DoubleGT.newBuilder() to construct. - private DoubleGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleGT parseFrom( } public static build.buf.validate.conformance.cases.DoubleGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleGT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleGT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGT) } 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 index 40b68fe0..99b938ee 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleGTE} */ public final class DoubleGTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleGTE.class.getName()); + } // Use DoubleGTE.newBuilder() to construct. - private DoubleGTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleGTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleGTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleGTE parseFrom( } public static build.buf.validate.conformance.cases.DoubleGTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleGTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleGTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleGTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGTE) } 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 index 72b93b14..be4d0393 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleGTELTE} */ public final class DoubleGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleGTELTE.class.getName()); + } // Use DoubleGTELTE.newBuilder() to construct. - private DoubleGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleGTELTE parseFrom( } public static build.buf.validate.conformance.cases.DoubleGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleGTELTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleGTELTE res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleGTELTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGTELTE) } 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 index c8432838..78631f27 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleGTELTEOrBuilder extends 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 index 6253e570..c4441530 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleGTEOrBuilder extends 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 index 96d69448..22549c98 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleGTLT} */ public final class DoubleGTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleGTLT.class.getName()); + } // Use DoubleGTLT.newBuilder() to construct. - private DoubleGTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleGTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleGTLT parseFrom( } public static build.buf.validate.conformance.cases.DoubleGTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleGTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleGTLT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleGTLT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGTLT) } 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 index 3b3d73cd..b95b1293 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleGTLTOrBuilder extends 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 index d7615f19..8ae342bb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleGTOrBuilder extends 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 index 6aecbed0..7aa30327 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleIgnore} */ public final class DoubleIgnore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleIgnore.class.getName()); + } // Use DoubleIgnore.newBuilder() to construct. - private DoubleIgnore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleIgnore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleIgnore parseFrom( } public static build.buf.validate.conformance.cases.DoubleIgnore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleIgnore parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleIgnore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleIgnore res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleIgnore) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleIgnore) } 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 index 11d14eee..9939d647 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleIgnoreOrBuilder extends 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 index 7cba129a..2e1f9c09 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleIn} */ public final class DoubleIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleIn.class.getName()); + } // Use DoubleIn.newBuilder() to construct. - private DoubleIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleIn parseFrom( } public static build.buf.validate.conformance.cases.DoubleIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleIn result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleIn) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleIn) } 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 index 1778574e..9e0a92dc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleInOrBuilder extends 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 index 65237c9d..5dfd0cd2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleIncorrectType} */ public final class DoubleIncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleIncorrectType.class.getName()); + } // Use DoubleIncorrectType.newBuilder() to construct. - private DoubleIncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleIncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleIncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleIncorrectType parseFrom } public static build.buf.validate.conformance.cases.DoubleIncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleIncorrectType parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleIncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleIncorrectT } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleIncorrectType) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleIncorrectType) } 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 index 1403a958..a31cc816 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleIncorrectTypeOrBuilder extends 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 index e2d105c6..471449b5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleLT} */ public final class DoubleLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleLT.class.getName()); + } // Use DoubleLT.newBuilder() to construct. - private DoubleLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleLT parseFrom( } public static build.buf.validate.conformance.cases.DoubleLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleLT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleLT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleLT) } 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 index 33119693..bbf2fb0a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleLTE} */ public final class DoubleLTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleLTE.class.getName()); + } // Use DoubleLTE.newBuilder() to construct. - private DoubleLTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleLTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleLTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleLTE parseFrom( } public static build.buf.validate.conformance.cases.DoubleLTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleLTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleLTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleLTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleLTE) } 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 index c8710d85..60ee7139 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleLTEOrBuilder extends 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 index dd18a966..c8e876e3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleLTOrBuilder extends 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 index abf04b25..b025d340 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNone.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleNone} */ public final class DoubleNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleNone.class.getName()); + } // Use DoubleNone.newBuilder() to construct. - private DoubleNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleNone parseFrom( } public static build.buf.validate.conformance.cases.DoubleNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleNone resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleNone) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleNone) } 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 index a45e66b7..45d7d754 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleNoneOrBuilder extends 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 index 9005c907..cc250c22 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DoubleNotIn} */ public final class DoubleNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleNotIn.class.getName()); + } // Use DoubleNotIn.newBuilder() to construct. - private DoubleNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleNotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.DoubleNotIn parseFrom( } public static build.buf.validate.conformance.cases.DoubleNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.DoubleNotIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DoubleNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DoubleNotIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DoubleNotIn) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleNotIn) } 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 index c72f9e2e..8004f0e3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DoubleNotInOrBuilder extends 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 index 973842b9..07fdbad8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConst.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationConst} */ public final class DurationConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationConst.class.getName()); + } // Use DurationConst.newBuilder() to construct. - private DurationConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationConst() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationConst parseFrom( } public static build.buf.validate.conformance.cases.DurationConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationConst parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationConst re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationConst) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationConst) } 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 index 647f9f28..52f7d42b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConstOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationConstOrBuilder extends 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 index 4247da93..6032a39f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationExGTELTE} */ public final class DurationExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationExGTELTE.class.getName()); + } // Use DurationExGTELTE.newBuilder() to construct. - private DurationExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.DurationExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationExGTELTE parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationExGTELTE result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationExGTELTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationExGTELTE) } 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 index 839ec01b..ffc6a1eb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationExGTELTEOrBuilder extends 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 index b689c574..f206ebb6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationExLTGT} */ public final class DurationExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationExLTGT.class.getName()); + } // Use DurationExLTGT.newBuilder() to construct. - private DurationExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationExLTGT parseFrom( } public static build.buf.validate.conformance.cases.DurationExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationExLTGT parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationExLTGT r result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationExLTGT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationExLTGT) } 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 index 02ae33e2..3dbd6308 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationExLTGTOrBuilder extends 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 index 69f480ee..2a8870c8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFields.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFields.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** @@ -13,31 +14,33 @@ * Protobuf type {@code buf.validate.conformance.cases.DurationFieldWithOtherFields} */ public final class DurationFieldWithOtherFields extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationFieldWithOtherFields.class.getName()); + } // Use DurationFieldWithOtherFields.newBuilder() to construct. - private DurationFieldWithOtherFields(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationFieldWithOtherFields(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationFieldWithOtherFields() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -197,20 +200,20 @@ public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields } public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -218,20 +221,20 @@ public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -251,7 +254,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -264,7 +267,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationFieldWithOtherFields} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -273,7 +276,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -286,12 +289,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getDurationValFieldBuilder(); } @@ -352,38 +355,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationFieldWit result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationFieldWithOtherFields) { @@ -458,7 +429,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration durationVal_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -564,11 +535,11 @@ public com.google.protobuf.DurationOrBuilder getDurationValOrBuilder() { /** * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationValFieldBuilder() { if (durationValBuilder_ == null) { - durationValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + durationValBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDurationVal(), getParentForChildren(), @@ -609,18 +580,6 @@ public Builder clearIntVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationFieldWithOtherFields) } 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 index 9fa44e66..ee7c0584 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFieldsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFieldsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationFieldWithOtherFieldsOrBuilder extends 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 index ff644744..1270df61 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationGT} */ public final class DurationGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationGT.class.getName()); + } // Use DurationGT.newBuilder() to construct. - private DurationGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationGT parseFrom( } public static build.buf.validate.conformance.cases.DurationGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationGT resul result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationGT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGT) } 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 index 4d935fd7..fc0c122b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationGTE} */ public final class DurationGTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationGTE.class.getName()); + } // Use DurationGTE.newBuilder() to construct. - private DurationGTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationGTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationGTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationGTE parseFrom( } public static build.buf.validate.conformance.cases.DurationGTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationGTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationGTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationGTE resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationGTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGTE) } 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 index 0592ba81..19903d2f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationGTELTE} */ public final class DurationGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationGTELTE.class.getName()); + } // Use DurationGTELTE.newBuilder() to construct. - private DurationGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationGTELTE parseFrom( } public static build.buf.validate.conformance.cases.DurationGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationGTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationGTELTE r result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationGTELTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGTELTE) } 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 index ae549ebb..d9f19f59 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationGTELTEOrBuilder extends 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 index 842c0b38..8a60736b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationGTEOrBuilder extends 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 index 0351f24e..2ad7edd1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationGTLT} */ public final class DurationGTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationGTLT.class.getName()); + } // Use DurationGTLT.newBuilder() to construct. - private DurationGTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationGTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationGTLT parseFrom( } public static build.buf.validate.conformance.cases.DurationGTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationGTLT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationGTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationGTLT res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationGTLT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGTLT) } 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 index 41a68e7d..1718a757 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationGTLTOrBuilder extends 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 index ad19a858..0d01d3a0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationGTOrBuilder extends 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 index bbdf71d6..55f71911 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationIn.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationIn} */ public final class DurationIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationIn.class.getName()); + } // Use DurationIn.newBuilder() to construct. - private DurationIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationIn parseFrom( } public static build.buf.validate.conformance.cases.DurationIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationIn resul result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationIn) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationIn) } 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 index 02296a4b..435ada20 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationInOrBuilder extends 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 index 0e55d068..afe4edb1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationLT} */ public final class DurationLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationLT.class.getName()); + } // Use DurationLT.newBuilder() to construct. - private DurationLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationLT parseFrom( } public static build.buf.validate.conformance.cases.DurationLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationLT resul result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationLT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationLT) } 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 index 2389ef46..e8524813 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationLTE} */ public final class DurationLTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationLTE.class.getName()); + } // Use DurationLTE.newBuilder() to construct. - private DurationLTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationLTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationLTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationLTE parseFrom( } public static build.buf.validate.conformance.cases.DurationLTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationLTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationLTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationLTE resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationLTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationLTE) } 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 index 709f6202..900bf190 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationLTEOrBuilder extends 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 index 7fb3f91d..d5ff358e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationLTOrBuilder extends 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 index d7714b8f..f99547a6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationNone} */ public final class DurationNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationNone.class.getName()); + } // Use DurationNone.newBuilder() to construct. - private DurationNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationNone parseFrom( } public static build.buf.validate.conformance.cases.DurationNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationNone parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationNone res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationNone) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationNone) } 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 index 1f67144d..e60d0532 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationNoneOrBuilder extends 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 index 34cc09bf..0c8b3834 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotIn.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationNotIn} */ public final class DurationNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationNotIn.class.getName()); + } // Use DurationNotIn.newBuilder() to construct. - private DurationNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationNotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationNotIn parseFrom( } public static build.buf.validate.conformance.cases.DurationNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationNotIn parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationNotIn re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationNotIn) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationNotIn) } 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 index bb9dd39a..b181dcc6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationNotInOrBuilder extends 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 index c40fd599..ba6ddb06 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequired.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.DurationRequired} */ public final class DurationRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationRequired.class.getName()); + } // Use DurationRequired.newBuilder() to construct. - private DurationRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationRequired() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.DurationRequired parseFrom( } public static build.buf.validate.conformance.cases.DurationRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.DurationRequired parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.DurationRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.DurationRequired result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.DurationRequired) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { /** * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DurationOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationRequired) } 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 index 474a9b83..92db1252 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface DurationRequiredOrBuilder extends 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 new file mode 100644 index 00000000..eac074f9 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefault.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..31a78ed6 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefaultOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..1c4d3fb1 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmpty.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..551a996a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmptyOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..359a0d2d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecified.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..711b3ed3 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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/EditionsMapKeyIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefault.java new file mode 100644 index 00000000..f4ae7985 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefault.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..4a0e8c3c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefaultOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..fbc66782 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmpty.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..d91e13cc --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmptyOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..2eae1e0f --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecified.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..ad7f78ef --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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/EditionsMapValueIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefault.java new file mode 100644 index 00000000..d91c8f9d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefault.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..fb56c63e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefaultOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..4753b23c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmpty.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..30860c3b --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmptyOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..a8fb6cc6 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecified.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..b7adb5da --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java new file mode 100644 index 00000000..c6796137 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..578c4a77 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..cd23d99e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..39df4e45 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..293c4330 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..82f176c6 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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/EditionsMessageExplicitPresenceIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefault.java new file mode 100644 index 00000000..29b8590a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefault.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..0a959eaf --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..fc9af1d1 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmpty.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..3acdf182 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..d5bdd1bd --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecified.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..834caaea --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java new file mode 100644 index 00000000..f3846f3c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..59c71ee8 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..783a064e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..f09ff018 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..67f269ad --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..3b06201e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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/EditionsMessageLegacyRequiredIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefault.java new file mode 100644 index 00000000..249fed70 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefault.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..917a1aa9 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..aad0763f --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmpty.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..1f2f97e8 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..2513934f --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecified.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..6c011e0e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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/EditionsOneofIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefault.java new file mode 100644 index 00000000..64df5db3 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefault.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..6604162d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..8aba10ee --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefault.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..b9850a98 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefaultOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..f2cd8557 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmpty.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..07ff7d70 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..654165ad --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefault.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..2c99e37d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefaultOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..d430608e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecified.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..099a0427 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..e4e880ad --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefault.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..0abc9b41 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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/EditionsRepeatedExpandedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefault.java new file mode 100644 index 00000000..46139aaa --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefault.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..d77d2f0c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefaultOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..718a48e9 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmpty.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..8f320025 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmptyOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..34471b3a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecified.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..96fd59c5 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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/EditionsRepeatedExpandedItemIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefault.java new file mode 100644 index 00000000..8313d5e5 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefault.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..b4f1725c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..8569d427 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmpty.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..ce8eea65 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..e1b47aa7 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecified.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..14da5ea4 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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/EditionsRepeatedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefault.java new file mode 100644 index 00000000..85521189 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefault.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..8248ee8c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefaultOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..e44fd0f3 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmpty.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..badf51f3 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmptyOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..6abea68d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecified.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..10d7a857 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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/EditionsRepeatedItemIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefault.java new file mode 100644 index 00000000..90d82a2d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefault.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..eff675dc --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefaultOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..83852df3 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmpty.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..2ba1ee65 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmptyOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..4b85b388 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecified.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..e1a9b98a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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/EditionsScalarExplicitPresenceIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefault.java new file mode 100644 index 00000000..0ddb5f89 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefault.java @@ -0,0 +1,456 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..7818d58d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..62d23630 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.java @@ -0,0 +1,457 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..38549646 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..be837579 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmpty.java @@ -0,0 +1,456 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..b68dc7f1 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..e1978d6c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.java @@ -0,0 +1,457 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..ab259651 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..a4791849 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecified.java @@ -0,0 +1,456 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..eb7f23ec --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..2d92b3eb --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.java @@ -0,0 +1,457 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..edc312f9 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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/EditionsScalarImplicitPresenceIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefault.java new file mode 100644 index 00000000..3aa000da --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefault.java @@ -0,0 +1,431 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..26b05a15 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder.java @@ -0,0 +1,17 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..b057305c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmpty.java @@ -0,0 +1,431 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..cb84cded --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder.java @@ -0,0 +1,17 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..13a14149 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecified.java @@ -0,0 +1,431 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..6811ccf3 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,17 @@ +// 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.27.3 + +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/EditionsScalarLegacyRequiredIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefault.java new file mode 100644 index 00000000..e5addb9c --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefault.java @@ -0,0 +1,463 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..61098e10 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..2c284593 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.java @@ -0,0 +1,464 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..246b3a70 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..d5461527 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmpty.java @@ -0,0 +1,463 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..f8ca5ea7 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..0e77118a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.java @@ -0,0 +1,464 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..8e02ba50 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..f8660db2 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecified.java @@ -0,0 +1,463 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..3fc84cf0 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..65d6adde --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.java @@ -0,0 +1,464 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..474fb2d5 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 index 0727eb40..43988c11 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Embed.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Embed.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Embed} */ public final class Embed extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Embed.class.getName()); + } // Use Embed.newBuilder() to construct. - private Embed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Embed(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Embed() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Embed parseFrom( } public static build.buf.validate.conformance.cases.Embed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Embed} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Embed result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Embed) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Embed) } 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 index 4dbda13d..e0a0adb9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EmbedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EmbedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EmbedOrBuilder extends 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 index 039fe30d..1dfe8043 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConst.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumAliasConst} */ public final class EnumAliasConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumAliasConst.class.getName()); + } // Use EnumAliasConst.newBuilder() to construct. - private EnumAliasConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumAliasConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumAliasConst() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumAliasConst(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumAliasConst parseFrom( } public static build.buf.validate.conformance.cases.EnumAliasConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumAliasConst parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumAliasConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasConst r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumAliasConst) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasConst) } 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 index 3edd3f2c..dcb3c3b4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConstOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumAliasConstOrBuilder extends 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 index 04635bf3..6efa5378 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefined.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumAliasDefined} */ public final class EnumAliasDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumAliasDefined.class.getName()); + } // Use EnumAliasDefined.newBuilder() to construct. - private EnumAliasDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumAliasDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumAliasDefined() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumAliasDefined(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumAliasDefined parseFrom( } public static build.buf.validate.conformance.cases.EnumAliasDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumAliasDefined parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumAliasDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasDefined } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumAliasDefined) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasDefined) } 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 index 806952f3..04544892 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumAliasDefinedOrBuilder extends 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 index 6c53dfb5..723bc41a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumAliasIn} */ public final class EnumAliasIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumAliasIn.class.getName()); + } // Use EnumAliasIn.newBuilder() to construct. - private EnumAliasIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumAliasIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumAliasIn() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumAliasIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumAliasIn parseFrom( } public static build.buf.validate.conformance.cases.EnumAliasIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumAliasIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumAliasIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumAliasIn) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasIn) } 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 index 3c4605e0..3fe1cb54 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumAliasInOrBuilder extends 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 index ed12995a..101b81ce 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumAliasNotIn} */ public final class EnumAliasNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumAliasNotIn.class.getName()); + } // Use EnumAliasNotIn.newBuilder() to construct. - private EnumAliasNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumAliasNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumAliasNotIn() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumAliasNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumAliasNotIn parseFrom( } public static build.buf.validate.conformance.cases.EnumAliasNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumAliasNotIn parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumAliasNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasNotIn r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumAliasNotIn) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasNotIn) } 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 index 7f8622bc..c5a3652e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumAliasNotInOrBuilder extends 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 index c6dee9c2..ae0410ea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConst.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumConst} */ public final class EnumConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumConst.class.getName()); + } // Use EnumConst.newBuilder() to construct. - private EnumConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumConst() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumConst(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumConst parseFrom( } public static build.buf.validate.conformance.cases.EnumConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumConst result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumConst) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumConst) } 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 index 22a1b250..c1684d04 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConstOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumConstOrBuilder extends 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 index 904bfc64..46738230 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefined.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumDefined} */ public final class EnumDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumDefined.class.getName()); + } // Use EnumDefined.newBuilder() to construct. - private EnumDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumDefined() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumDefined(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumDefined parseFrom( } public static build.buf.validate.conformance.cases.EnumDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumDefined parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumDefined resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumDefined) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumDefined) } 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 index ad38a4f2..44e88f68 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumDefinedOrBuilder extends 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 index 94c9ac32..308969b8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumExternal} */ public final class EnumExternal extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumExternal.class.getName()); + } // Use EnumExternal.newBuilder() to construct. - private EnumExternal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumExternal(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumExternal() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumExternal(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumExternal parseFrom( } public static build.buf.validate.conformance.cases.EnumExternal parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumExternal parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumExternal} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumExternal res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumExternal) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumExternal) } 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 index 06a4cb7b..71a04f92 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumExternal2} */ public final class EnumExternal2 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumExternal2.class.getName()); + } // Use EnumExternal2.newBuilder() to construct. - private EnumExternal2(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumExternal2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumExternal2() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumExternal2(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumExternal2 parseFrom( } public static build.buf.validate.conformance.cases.EnumExternal2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.EnumExternal2 parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumExternal2} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumExternal2 re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumExternal2) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumExternal2) } 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 index 90a4e972..058a0adf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumExternal2OrBuilder extends 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 index 138f95fd..6ae9bdc0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternalOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternalOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumExternalOrBuilder extends 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 index a8d646ea..ce87cb9a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumIn} */ public final class EnumIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumIn.class.getName()); + } // Use EnumIn.newBuilder() to construct. - private EnumIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumIn() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumIn parseFrom( } public static build.buf.validate.conformance.cases.EnumIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumIn result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumIn) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumIn) } 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 index 0cc41516..4d8331a8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumInOrBuilder extends 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 index badbe669..a1ee462e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumInsideOneof} */ public final class EnumInsideOneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumInsideOneof.class.getName()); + } // Use EnumInsideOneof.newBuilder() to construct. - private EnumInsideOneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumInsideOneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumInsideOneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -317,20 +320,20 @@ public static build.buf.validate.conformance.cases.EnumInsideOneof parseFrom( } public static build.buf.validate.conformance.cases.EnumInsideOneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -338,20 +341,20 @@ public static build.buf.validate.conformance.cases.EnumInsideOneof parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -371,7 +374,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -379,7 +382,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumInsideOneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -388,7 +391,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -401,7 +404,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -456,38 +459,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.EnumInsideO result.bar_ = this.bar_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumInsideOneof) { @@ -742,18 +713,6 @@ public Builder clearVal2() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumInsideOneof) } 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 index 0065d14a..97dec936 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumInsideOneofOrBuilder extends 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 index 3fc4e14e..ab92018c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNone.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumNone} */ public final class EnumNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumNone.class.getName()); + } // Use EnumNone.newBuilder() to construct. - private EnumNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumNone() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumNone(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumNone parseFrom( } public static build.buf.validate.conformance.cases.EnumNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumNone result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumNone) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumNone) } 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 index ceece846..816a67ab 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumNoneOrBuilder extends 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 index 04338aeb..6f39d79c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.EnumNotIn} */ public final class EnumNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumNotIn.class.getName()); + } // Use EnumNotIn.newBuilder() to construct. - private EnumNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumNotIn() { val_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,20 +159,20 @@ public static build.buf.validate.conformance.cases.EnumNotIn parseFrom( } public static build.buf.validate.conformance.cases.EnumNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -177,20 +180,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -210,7 +213,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -218,7 +221,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.EnumNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -227,7 +230,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -240,7 +243,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +290,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.EnumNotIn result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.EnumNotIn) { @@ -434,18 +405,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumNotIn) } 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 index d73468f3..4fa1425b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface EnumNotInOrBuilder extends 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 index 056a0483..1025049b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumsProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumsProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumsProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,97 +28,97 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_EnumNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -199,125 +209,126 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_EnumNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor, new java.lang.String[] { "Val", "Val2", "Foo", "Bar", }); + 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); - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(); - build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index 3fcf4324..3268d246 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FilenameWithDashProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FilenameWithDashProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FilenameWithDashProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -39,6 +49,7 @@ public static void registerAllExtensions( new com.google.protobuf.Descriptors.FileDescriptor[] { build.buf.validate.ValidateProto.getDescriptor(), }); + descriptor.resolveAllFeaturesImmutable(); build.buf.validate.ValidateProto.getDescriptor(); } 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 index 6e90a33c..14348b91 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32Const} */ public final class Fixed32Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32Const.class.getName()); + } // Use Fixed32Const.newBuilder() to construct. - private Fixed32Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32Const parseFrom( } public static build.buf.validate.conformance.cases.Fixed32Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32Const parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32Const res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32Const) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32Const) } 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 index e1d6b099..3ea25992 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32ConstOrBuilder extends 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 index 8d33c344..8135e068 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32ExGTELTE} */ public final class Fixed32ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32ExGTELTE.class.getName()); + } // Use Fixed32ExGTELTE.newBuilder() to construct. - private Fixed32ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed32ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32ExGTELTE parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32ExGTELTE } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32ExGTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32ExGTELTE) } 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 index 215073cc..f91593a8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32ExGTELTEOrBuilder extends 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 index 5143c2b4..bb24a764 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32ExLTGT} */ public final class Fixed32ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32ExLTGT.class.getName()); + } // Use Fixed32ExLTGT.newBuilder() to construct. - private Fixed32ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.Fixed32ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32ExLTGT parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32ExLTGT re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32ExLTGT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32ExLTGT) } 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 index 43355850..f1ad0693 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32ExLTGTOrBuilder extends 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 index b31e8473..78cee850 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32GT} */ public final class Fixed32GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32GT.class.getName()); + } // Use Fixed32GT.newBuilder() to construct. - private Fixed32GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32GT parseFrom( } public static build.buf.validate.conformance.cases.Fixed32GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32GT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GT) } 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 index 5698dc69..480b4de5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTE} */ public final class Fixed32GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32GTE.class.getName()); + } // Use Fixed32GTE.newBuilder() to construct. - private Fixed32GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32GTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed32GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GTE resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32GTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GTE) } 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 index 4f7cfade..a7f92167 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTELTE} */ public final class Fixed32GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32GTELTE.class.getName()); + } // Use Fixed32GTELTE.newBuilder() to construct. - private Fixed32GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32GTELTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed32GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32GTELTE parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GTELTE re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32GTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GTELTE) } 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 index 630dbfed..b2ac1fe3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32GTELTEOrBuilder extends 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 index 3c69d025..7c0070fb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32GTEOrBuilder extends 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 index f391f0ef..b1dd5d52 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTLT} */ public final class Fixed32GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32GTLT.class.getName()); + } // Use Fixed32GTLT.newBuilder() to construct. - private Fixed32GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32GTLT parseFrom( } public static build.buf.validate.conformance.cases.Fixed32GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32GTLT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GTLT resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32GTLT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GTLT) } 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 index 89e63cfd..c3d6cb7f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32GTLTOrBuilder extends 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 index 897f3221..70194e54 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32GTOrBuilder extends 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 index 3e12d433..e76be32b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32Ignore} */ public final class Fixed32Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32Ignore.class.getName()); + } // Use Fixed32Ignore.newBuilder() to construct. - private Fixed32Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32Ignore parseFrom( } public static build.buf.validate.conformance.cases.Fixed32Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32Ignore parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32Ignore re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32Ignore) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32Ignore) } 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 index 045ab940..69a8e0b8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32IgnoreOrBuilder extends 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 index 24d2b308..07f7d8b6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32In} */ public final class Fixed32In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32In.class.getName()); + } // Use Fixed32In.newBuilder() to construct. - private Fixed32In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32In parseFrom( } public static build.buf.validate.conformance.cases.Fixed32In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32In result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32In) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32In) } 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 index 7c4b922c..d308d9a1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32InOrBuilder extends 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 index 1bbf598b..4da8eb66 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32IncorrectType} */ public final class Fixed32IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32IncorrectType.class.getName()); + } // Use Fixed32IncorrectType.newBuilder() to construct. - private Fixed32IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32IncorrectType parseFro } public static build.buf.validate.conformance.cases.Fixed32IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32IncorrectType parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32Incorrect } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32IncorrectType) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32IncorrectType) } 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 index af4aeb11..73149403 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32IncorrectTypeOrBuilder extends 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 index 2985c3a1..33286413 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32LT} */ public final class Fixed32LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32LT.class.getName()); + } // Use Fixed32LT.newBuilder() to construct. - private Fixed32LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32LT parseFrom( } public static build.buf.validate.conformance.cases.Fixed32LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32LT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32LT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32LT) } 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 index 43c29149..8a5306e8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32LTE} */ public final class Fixed32LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32LTE.class.getName()); + } // Use Fixed32LTE.newBuilder() to construct. - private Fixed32LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32LTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed32LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32LTE resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32LTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32LTE) } 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 index c0bf0a76..b019df94 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32LTEOrBuilder extends 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 index eedc1d02..555601f6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32LTOrBuilder extends 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 index e765e216..6ee7928c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32None} */ public final class Fixed32None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32None.class.getName()); + } // Use Fixed32None.newBuilder() to construct. - private Fixed32None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32None parseFrom( } public static build.buf.validate.conformance.cases.Fixed32None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32None parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32None resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32None) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32None) } 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 index 99090182..743f38de 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32NoneOrBuilder extends 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 index 5be6b792..425a8bed 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed32NotIn} */ public final class Fixed32NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32NotIn.class.getName()); + } // Use Fixed32NotIn.newBuilder() to construct. - private Fixed32NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Fixed32NotIn parseFrom( } public static build.buf.validate.conformance.cases.Fixed32NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Fixed32NotIn parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed32NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed32NotIn res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed32NotIn) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32NotIn) } 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 index 2e24a629..11daec60 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed32NotInOrBuilder extends 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 index f00578d1..2ff5485d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64Const} */ public final class Fixed64Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64Const.class.getName()); + } // Use Fixed64Const.newBuilder() to construct. - private Fixed64Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64Const parseFrom( } public static build.buf.validate.conformance.cases.Fixed64Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64Const parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64Const res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64Const) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64Const) } 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 index 0cfbc40a..a5d8b049 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64ConstOrBuilder extends 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 index 2896c120..8390356b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64ExGTELTE} */ public final class Fixed64ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64ExGTELTE.class.getName()); + } // Use Fixed64ExGTELTE.newBuilder() to construct. - private Fixed64ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed64ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64ExGTELTE parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64ExGTELTE } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64ExGTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64ExGTELTE) } 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 index 9e60769b..7f86f35f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64ExGTELTEOrBuilder extends 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 index d52c3b93..62338ff7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64ExLTGT} */ public final class Fixed64ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64ExLTGT.class.getName()); + } // Use Fixed64ExLTGT.newBuilder() to construct. - private Fixed64ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.Fixed64ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64ExLTGT parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64ExLTGT re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64ExLTGT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64ExLTGT) } 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 index 05658d90..8321d896 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64ExLTGTOrBuilder extends 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 index f65738cf..09810537 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64GT} */ public final class Fixed64GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64GT.class.getName()); + } // Use Fixed64GT.newBuilder() to construct. - private Fixed64GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64GT parseFrom( } public static build.buf.validate.conformance.cases.Fixed64GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64GT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GT) } 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 index e796ff3a..5a62bc9e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTE} */ public final class Fixed64GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64GTE.class.getName()); + } // Use Fixed64GTE.newBuilder() to construct. - private Fixed64GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64GTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed64GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GTE resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64GTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GTE) } 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 index 32482627..f99063a9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTELTE} */ public final class Fixed64GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64GTELTE.class.getName()); + } // Use Fixed64GTELTE.newBuilder() to construct. - private Fixed64GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64GTELTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed64GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64GTELTE parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GTELTE re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64GTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GTELTE) } 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 index 5ac80427..905c07d2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64GTELTEOrBuilder extends 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 index 73790a53..084c6310 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64GTEOrBuilder extends 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 index b4bac5e6..5f40aa5f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTLT} */ public final class Fixed64GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64GTLT.class.getName()); + } // Use Fixed64GTLT.newBuilder() to construct. - private Fixed64GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64GTLT parseFrom( } public static build.buf.validate.conformance.cases.Fixed64GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64GTLT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GTLT resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64GTLT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GTLT) } 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 index 931f8d15..69cca963 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64GTLTOrBuilder extends 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 index f629fdbb..2c17566f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64GTOrBuilder extends 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 index 78e01a1f..108dc987 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64Ignore} */ public final class Fixed64Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64Ignore.class.getName()); + } // Use Fixed64Ignore.newBuilder() to construct. - private Fixed64Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64Ignore parseFrom( } public static build.buf.validate.conformance.cases.Fixed64Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64Ignore parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64Ignore re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64Ignore) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64Ignore) } 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 index 8d57e32f..2e19b463 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64IgnoreOrBuilder extends 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 index 8689bc14..513a5cd5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64In} */ public final class Fixed64In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64In.class.getName()); + } // Use Fixed64In.newBuilder() to construct. - private Fixed64In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64In parseFrom( } public static build.buf.validate.conformance.cases.Fixed64In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64In result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64In) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64In) } 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 index bb7dad73..d9f68eef 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64InOrBuilder extends 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 index 563fbc79..f46dba0e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64IncorrectType} */ public final class Fixed64IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64IncorrectType.class.getName()); + } // Use Fixed64IncorrectType.newBuilder() to construct. - private Fixed64IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64IncorrectType parseFro } public static build.buf.validate.conformance.cases.Fixed64IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64IncorrectType parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64Incorrect } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64IncorrectType) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64IncorrectType) } 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 index 5b0d3605..e2572c56 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64IncorrectTypeOrBuilder extends 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 index b8547be5..35c0676b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64LT} */ public final class Fixed64LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64LT.class.getName()); + } // Use Fixed64LT.newBuilder() to construct. - private Fixed64LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64LT parseFrom( } public static build.buf.validate.conformance.cases.Fixed64LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64LT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64LT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64LT) } 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 index 40d3a192..f19f0b92 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64LTE} */ public final class Fixed64LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64LTE.class.getName()); + } // Use Fixed64LTE.newBuilder() to construct. - private Fixed64LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64LTE parseFrom( } public static build.buf.validate.conformance.cases.Fixed64LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64LTE resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64LTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64LTE) } 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 index f5b14967..b7cfc0ea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64LTEOrBuilder extends 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 index d7772a5c..fbec1255 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64LTOrBuilder extends 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 index 3fe954c4..e06f39ce 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64None} */ public final class Fixed64None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64None.class.getName()); + } // Use Fixed64None.newBuilder() to construct. - private Fixed64None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64None parseFrom( } public static build.buf.validate.conformance.cases.Fixed64None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64None parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64None resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64None) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64None) } 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 index c22f6a19..9dfa7bb7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64NoneOrBuilder extends 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 index bee63305..69c31833 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Fixed64NotIn} */ public final class Fixed64NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64NotIn.class.getName()); + } // Use Fixed64NotIn.newBuilder() to construct. - private Fixed64NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Fixed64NotIn parseFrom( } public static build.buf.validate.conformance.cases.Fixed64NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Fixed64NotIn parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Fixed64NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Fixed64NotIn res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Fixed64NotIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64NotIn) } 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 index 59ef0efb..e6d0c722 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Fixed64NotInOrBuilder extends 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 index 4165b986..b55a9a9b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConst.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatConst} */ public final class FloatConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatConst.class.getName()); + } // Use FloatConst.newBuilder() to construct. - private FloatConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatConst() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatConst parseFrom( } public static build.buf.validate.conformance.cases.FloatConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatConst resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatConst) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatConst) } 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 index b4a0dfb6..ff6285df 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatConstOrBuilder extends 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 index 990d2073..2708ab32 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatExGTELTE} */ public final class FloatExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatExGTELTE.class.getName()); + } // Use FloatExGTELTE.newBuilder() to construct. - private FloatExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.FloatExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.FloatExGTELTE parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatExGTELTE re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatExGTELTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatExGTELTE) } 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 index 9c6c6b23..b5aee08a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatExGTELTEOrBuilder extends 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 index 678d5d58..a9920977 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatExLTGT} */ public final class FloatExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatExLTGT.class.getName()); + } // Use FloatExLTGT.newBuilder() to construct. - private FloatExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatExLTGT parseFrom( } public static build.buf.validate.conformance.cases.FloatExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.FloatExLTGT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatExLTGT resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatExLTGT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatExLTGT) } 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 index 6de73947..c347ede6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatExLTGTOrBuilder extends 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 index 3db78366..572dd363 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFinite.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFinite.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatFinite} */ public final class FloatFinite extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatFinite.class.getName()); + } // Use FloatFinite.newBuilder() to construct. - private FloatFinite(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatFinite(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatFinite() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatFinite parseFrom( } public static build.buf.validate.conformance.cases.FloatFinite parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.FloatFinite parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatFinite} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatFinite resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatFinite) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatFinite) } 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 index b8bfce96..df254c64 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFiniteOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFiniteOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatFiniteOrBuilder extends 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 index 5691626a..8177a358 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatGT} */ public final class FloatGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatGT.class.getName()); + } // Use FloatGT.newBuilder() to construct. - private FloatGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatGT parseFrom( } public static build.buf.validate.conformance.cases.FloatGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatGT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatGT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGT) } 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 index f1df64a8..a64f8fee 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatGTE} */ public final class FloatGTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatGTE.class.getName()); + } // Use FloatGTE.newBuilder() to construct. - private FloatGTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatGTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatGTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatGTE parseFrom( } public static build.buf.validate.conformance.cases.FloatGTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatGTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatGTE result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatGTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGTE) } 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 index 7d0a5591..9d159baf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatGTELTE} */ public final class FloatGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatGTELTE.class.getName()); + } // Use FloatGTELTE.newBuilder() to construct. - private FloatGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatGTELTE parseFrom( } public static build.buf.validate.conformance.cases.FloatGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.FloatGTELTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatGTELTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatGTELTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGTELTE) } 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 index fe6ef9bf..284c541e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatGTELTEOrBuilder extends 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 index 3026759e..f7d3622f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatGTEOrBuilder extends 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 index ae742e2d..dee56b1d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatGTLT} */ public final class FloatGTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatGTLT.class.getName()); + } // Use FloatGTLT.newBuilder() to construct. - private FloatGTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatGTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatGTLT parseFrom( } public static build.buf.validate.conformance.cases.FloatGTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatGTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatGTLT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatGTLT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGTLT) } 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 index ec73eefe..51ca68cd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatGTLTOrBuilder extends 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 index 311d5c5c..bc3ee333 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatGTOrBuilder extends 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 index 9f4af043..7a3e2dc1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatIgnore} */ public final class FloatIgnore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatIgnore.class.getName()); + } // Use FloatIgnore.newBuilder() to construct. - private FloatIgnore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatIgnore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatIgnore parseFrom( } public static build.buf.validate.conformance.cases.FloatIgnore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.FloatIgnore parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatIgnore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatIgnore resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatIgnore) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatIgnore) } 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 index 235e3db1..b5857a36 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatIgnoreOrBuilder extends 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 index f6e25db8..67e2e60b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatIn} */ public final class FloatIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatIn.class.getName()); + } // Use FloatIn.newBuilder() to construct. - private FloatIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatIn parseFrom( } public static build.buf.validate.conformance.cases.FloatIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatIn result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatIn) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatIn) } 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 index a93a120c..d141b7d2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatInOrBuilder extends 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 index cc5860fd..31f94bfe 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatIncorrectType} */ public final class FloatIncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatIncorrectType.class.getName()); + } // Use FloatIncorrectType.newBuilder() to construct. - private FloatIncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatIncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatIncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatIncorrectType parseFrom( } public static build.buf.validate.conformance.cases.FloatIncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ public static build.buf.validate.conformance.cases.FloatIncorrectType parseDelim java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatIncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatIncorrectTy } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatIncorrectType) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatIncorrectType) } 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 index ac444941..417614ba 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatIncorrectTypeOrBuilder extends 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 index 9885c112..4363c8ba 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatLT} */ public final class FloatLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatLT.class.getName()); + } // Use FloatLT.newBuilder() to construct. - private FloatLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatLT parseFrom( } public static build.buf.validate.conformance.cases.FloatLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatLT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatLT) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatLT) } 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 index 3276b1d9..7bc4c23f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatLTE} */ public final class FloatLTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatLTE.class.getName()); + } // Use FloatLTE.newBuilder() to construct. - private FloatLTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatLTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatLTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatLTE parseFrom( } public static build.buf.validate.conformance.cases.FloatLTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatLTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatLTE result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatLTE) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatLTE) } 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 index 521cab33..7acf4237 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatLTEOrBuilder extends 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 index 8f4f5a6e..62d80927 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatLTOrBuilder extends 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 index 87206e98..fee2df39 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNone.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatNone} */ public final class FloatNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatNone.class.getName()); + } // Use FloatNone.newBuilder() to construct. - private FloatNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatNone parseFrom( } public static build.buf.validate.conformance.cases.FloatNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatNone result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatNone) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatNone) } 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 index 843b85bc..8a2e7142 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatNoneOrBuilder extends 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 index ebd12394..dfe196de 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.FloatNotIn} */ public final class FloatNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatNotIn.class.getName()); + } // Use FloatNotIn.newBuilder() to construct. - private FloatNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatNotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -151,20 +154,20 @@ public static build.buf.validate.conformance.cases.FloatNotIn parseFrom( } public static build.buf.validate.conformance.cases.FloatNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -172,20 +175,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -205,7 +208,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -213,7 +216,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.FloatNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -222,7 +225,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -235,7 +238,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -282,38 +285,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.FloatNotIn resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.FloatNotIn) { @@ -408,18 +379,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatNotIn) } 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 index 3d7dce2a..896a2c7f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface FloatNotInOrBuilder extends 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 new file mode 100644 index 00000000..4430eda2 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMap.java @@ -0,0 +1,640 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..b55684fe --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMapOrBuilder.java @@ -0,0 +1,43 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..1156db43 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresence.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..02a0c53a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimited.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..6a25ccd7 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..1d43a0ef --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..f460fbd4 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequired.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..d15ecb5e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimited.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..c0cf9612 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..6913cc71 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..199ab09a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneof.java @@ -0,0 +1,531 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..d422aa28 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneofOrBuilder.java @@ -0,0 +1,24 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..25b5d7df --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeated.java @@ -0,0 +1,540 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..635477d0 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpanded.java @@ -0,0 +1,529 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..c7cbe81f --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpandedOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..cfc7303d --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..8b107565 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresence.java @@ -0,0 +1,456 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..347cc611 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..7cd718eb --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.java @@ -0,0 +1,457 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..f20164e1 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..c87d4995 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresence.java @@ -0,0 +1,431 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..cbcd9953 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder.java @@ -0,0 +1,17 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..6510d9b9 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequired.java @@ -0,0 +1,463 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..8ddbe126 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..7f196d4f --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.java @@ -0,0 +1,464 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..ae1208c6 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder.java @@ -0,0 +1,22 @@ +// 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.27.3 + +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 index 25e4a6f2..c7a3fbe5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairs.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairs.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyMapPairs} */ public final class IgnoreEmptyMapPairs extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyMapPairs.class.getName()); + } // Use IgnoreEmptyMapPairs.newBuilder() to construct. - private IgnoreEmptyMapPairs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyMapPairs(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyMapPairs() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs parseFrom } public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyMapPairs} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyMapPa } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyMapPairs) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyMapPairs) } 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 index 4669075b..14190045 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyMapPairsOrBuilder extends 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 index 3f2000e1..1fd2965e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Map.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Map.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Map} */ public final class IgnoreEmptyProto2Map extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2Map.class.getName()); + } // Use IgnoreEmptyProto2Map.newBuilder() to construct. - private IgnoreEmptyProto2Map(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2Map(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2Map() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map parseFro } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Map} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Map) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Map) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map getDefau return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2Map parsePartialFrom( 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 index e201489a..363538f5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MapOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MapOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2MapOrBuilder extends 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 index b2e227a4..a171e765 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Message.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Message.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Message} */ public final class IgnoreEmptyProto2Message extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2Message.class.getName()); + } // Use IgnoreEmptyProto2Message.newBuilder() to construct. - private IgnoreEmptyProto2Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2Message() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -754,20 +715,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message pars } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -775,20 +736,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -808,7 +769,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -816,7 +777,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Message} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -825,7 +786,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -838,12 +799,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -900,38 +861,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Message) { @@ -998,7 +927,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1104,11 +1033,11 @@ public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilde /** * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1117,18 +1046,6 @@ public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilde } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Message) } @@ -1143,7 +1060,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message getD return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2Message parsePartialFrom( 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 index f894279d..dec8544a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MessageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MessageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2MessageOrBuilder extends 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 index e90095e5..106fb64a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Oneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Oneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Oneof} */ public final class IgnoreEmptyProto2Oneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2Oneof.class.getName()); + } // Use IgnoreEmptyProto2Oneof.newBuilder() to construct. - private IgnoreEmptyProto2Oneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2Oneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof parseF } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Oneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.IgnoreEmpty result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof getDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2Oneof parsePartialFrom( 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 index e15a0126..95a8b3d9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2OneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2OneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2OneofOrBuilder extends 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 index 06f990cc..94e3c546 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Proto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Proto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,47 +28,47 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -105,63 +115,64 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index 5be1f211..61c3acc1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Repeated.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Repeated.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Repeated} */ public final class IgnoreEmptyProto2Repeated extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2Repeated.class.getName()); + } // Use IgnoreEmptyProto2Repeated.newBuilder() to construct. - private IgnoreEmptyProto2Repeated(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2Repeated() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IgnoreEmptyProto2Repeated(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated par } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Repeated} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated get return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2Repeated parsePartialFrom( 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 index cc58d1ce..19581357 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2RepeatedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2RepeatedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2RepeatedOrBuilder extends 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 index ea1ac5f5..97375f6b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptional.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptional.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional} */ public final class IgnoreEmptyProto2ScalarOptional extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2ScalarOptional.class.getName()); + } // Use IgnoreEmptyProto2ScalarOptional.newBuilder() to construct. - private IgnoreEmptyProto2ScalarOptional(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2ScalarOptional(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2ScalarOptional() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOption } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOption java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) } @@ -457,7 +416,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOption return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2ScalarOptional parsePartialFrom( 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 index f3191ab6..f5dd15af 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2ScalarOptionalOrBuilder extends 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 index 0528ad64..20da0292 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault} */ public final class IgnoreEmptyProto2ScalarOptionalWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2ScalarOptionalWithDefault.class.getName()); + } // Use IgnoreEmptyProto2ScalarOptionalWithDefault.newBuilder() to construct. - private IgnoreEmptyProto2ScalarOptionalWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2ScalarOptionalWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2ScalarOptionalWithDefault() { val_ = 42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IgnoreEmptyProto2ScalarOptionalWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -164,20 +167,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOption } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -185,20 +188,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOption java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -218,7 +221,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -226,7 +229,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -235,7 +238,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -248,7 +251,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -298,38 +301,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) { @@ -432,18 +403,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) } @@ -458,7 +417,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOption return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2ScalarOptionalWithDefault parsePartialFrom( 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 index 813a2ea1..9be4a8c5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder extends 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 index 569a81fd..bdf3ee07 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequired.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired} */ public final class IgnoreEmptyProto2ScalarRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto2ScalarRequired.class.getName()); + } // Use IgnoreEmptyProto2ScalarRequired.newBuilder() to construct. - private IgnoreEmptyProto2ScalarRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto2ScalarRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto2ScalarRequired() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -167,20 +170,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequir } public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -188,20 +191,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequir java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -221,7 +224,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -229,7 +232,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -238,7 +241,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -251,7 +254,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -301,38 +304,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) { @@ -438,18 +409,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) } @@ -464,7 +423,7 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequir return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IgnoreEmptyProto2ScalarRequired parsePartialFrom( 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 index 3d626656..44ed2e31 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto2ScalarRequiredOrBuilder extends 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 index 04fc4f9b..6ae25e32 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Map.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Map.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Map} */ public final class IgnoreEmptyProto3Map extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3Map.class.getName()); + } // Use IgnoreEmptyProto3Map.newBuilder() to construct. - private IgnoreEmptyProto3Map(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto3Map(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto3Map() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map parseFro } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Map} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Map) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Map) } 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 index 17e1bb1b..1fc57d75 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MapOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MapOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto3MapOrBuilder extends 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 index 6ffe877f..c31e6955 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Message.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Message.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Message} */ public final class IgnoreEmptyProto3Message extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3Message.class.getName()); + } // Use IgnoreEmptyProto3Message.newBuilder() to construct. - private IgnoreEmptyProto3Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto3Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto3Message() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -59,32 +62,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,8 +149,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -156,8 +161,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -228,20 +233,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -282,7 +287,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -290,7 +295,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -299,7 +304,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -312,7 +317,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -359,38 +364,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) { @@ -527,18 +500,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) } @@ -722,20 +683,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message pars } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -743,20 +704,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -776,7 +737,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -784,7 +745,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Message} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -793,7 +754,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -806,12 +767,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -868,38 +829,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Message) { @@ -966,7 +895,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1072,11 +1001,11 @@ public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilde /** * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1085,18 +1014,6 @@ public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilde } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Message) } 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 index 607211bb..cb14ef0c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MessageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MessageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto3MessageOrBuilder extends 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 index fda39971..3fec4a34 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Oneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Oneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Oneof} */ public final class IgnoreEmptyProto3Oneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3Oneof.class.getName()); + } // Use IgnoreEmptyProto3Oneof.newBuilder() to construct. - private IgnoreEmptyProto3Oneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto3Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto3Oneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof parseF } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Oneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.IgnoreEmpty result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) } 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 index 1cbe32b0..84d912eb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto3OneofOrBuilder extends 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 index 0d178b23..a88f9152 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalar.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalar.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar} */ public final class IgnoreEmptyProto3OptionalScalar extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3OptionalScalar.class.getName()); + } // Use IgnoreEmptyProto3OptionalScalar.newBuilder() to construct. - private IgnoreEmptyProto3OptionalScalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto3OptionalScalar(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto3OptionalScalar() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScal } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScal java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) } 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 index 0d2bafc8..d3982613 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalarOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalarOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto3OptionalScalarOrBuilder extends 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 index 8c752a86..1514cb06 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Proto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Proto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,57 +28,57 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -120,75 +130,76 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index f5d33534..3c83022e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Repeated.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Repeated.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Repeated} */ public final class IgnoreEmptyProto3Repeated extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3Repeated.class.getName()); + } // Use IgnoreEmptyProto3Repeated.newBuilder() to construct. - private IgnoreEmptyProto3Repeated(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto3Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto3Repeated() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IgnoreEmptyProto3Repeated(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated par } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Repeated} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) } 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 index 28df0365..03978d5f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3RepeatedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3RepeatedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto3RepeatedOrBuilder extends 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 index e70af87a..ec832e13 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Scalar.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Scalar.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Scalar} */ public final class IgnoreEmptyProto3Scalar extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyProto3Scalar.class.getName()); + } // Use IgnoreEmptyProto3Scalar.newBuilder() to construct. - private IgnoreEmptyProto3Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyProto3Scalar(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyProto3Scalar() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar parse } public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Scalar} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) } 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 index 0a94f688..c6631bda 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3ScalarOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3ScalarOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyProto3ScalarOrBuilder extends 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 new file mode 100644 index 00000000..27e9fdd8 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProtoEditionsProto.java @@ -0,0 +1,306 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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\320\001\001R\003v" + + "al\"X\n4IgnoreEmptyEditionsScalarExplicitP" + + "resenceWithDefault\022 \n\003val\030\001 \001(\005:\00242B\n\272H\007" + + "\032\002 \000\320\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\320\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\320\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\320\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\'\320\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\'\320\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\'\320\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\'\320\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\320\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\320\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\320\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\320\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 index dd342e0e..c2c387bf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItems.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItems.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyRepeatedItems} */ public final class IgnoreEmptyRepeatedItems extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreEmptyRepeatedItems.class.getName()); + } // Use IgnoreEmptyRepeatedItems.newBuilder() to construct. - private IgnoreEmptyRepeatedItems(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IgnoreEmptyRepeatedItems(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IgnoreEmptyRepeatedItems() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IgnoreEmptyRepeatedItems(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems pars } public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyRepeatedItems} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyRepea } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) } 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 index 7b44f216..0cf1f58a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItemsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItemsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface IgnoreEmptyRepeatedItemsOrBuilder extends 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 index 93ad2e5f..0a5b859d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto2Proto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto2Proto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreProto2Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,272 +28,272 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2ScalarRequiredIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2MessageOptionalIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2MessageRequiredIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2OneofIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2RepeatedIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2MapIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2RepeatedItemIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2MapKeyIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto2MapValueIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -430,333 +440,334 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(7); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(8); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(9); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(10); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(11); internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(13); internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(14); internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto2MessageRequiredIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(16); internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(17); internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto2OneofIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(19); internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(20); internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(21); internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(22); internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(23); internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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_Proto2RepeatedIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(25); internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(26); internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(28); internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(29); internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto2RepeatedItemIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(31); internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(32); internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(34); internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(35); internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto2MapValueIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(37); internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(38); internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index eed5ab38..73e8c12e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto3Proto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto3Proto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IgnoreProto3Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,227 +28,227 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3ScalarIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3MessageOptionalIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3MessageIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3OneofIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3RepeatedIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3MapIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3RepeatedItemIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3MapKeyIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Proto3MapValueIgnoreUnspecified_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -369,279 +379,280 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(4); internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(5); internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(7); internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(8); internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto3MessageIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(10); internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(11); internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto3OneofIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(13); internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(14); internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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_Proto3RepeatedIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(16); internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(17); internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(19); internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(20); internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto3RepeatedItemIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(22); internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(23); internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(25); internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(26); internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_Proto3MapValueIgnoreUnspecified_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(28); internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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(29); internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 new file mode 100644 index 00000000..47276d4a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProtoEditionsProto.java @@ -0,0 +1,1074 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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_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_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_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_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_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_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_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_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_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_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; + + 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\"Q\n/Edition" + + "sScalarImplicitPresenceIgnoreUnspecified" + + "\022\036\n\003val\030\001 \001(\005B\014\252\001\002\010\002\272H\004\032\002 \000R\003val\"N\n)Edit" + + "ionsScalarImplicitPresenceIgnoreEmpty\022!\n" + + "\003val\030\001 \001(\005B\017\252\001\002\010\002\272H\007\032\002 \000\330\001\001R\003val\"P\n+Edit" + + "ionsScalarImplicitPresenceIgnoreDefault\022" + + "!\n\003val\030\001 \001(\005B\017\252\001\002\010\002\272H\007\032\002 \000\330\001\002R\003val\"O\n-Ed" + + "itionsScalarLegacyRequiredIgnoreUnspecif" + + "ied\022\036\n\003val\030\001 \001(\005B\014\252\001\002\010\003\272H\004\032\002 \000R\003val\"_\n8E" + + "ditionsScalarLegacyRequiredIgnoreUnspeci" + + "fiedWithDefault\022#\n\003val\030\001 \001(\005:\003-42B\014\252\001\002\010\003" + + "\272H\004\032\002 \000R\003val\"L\n\'EditionsScalarLegacyRequ" + + "iredIgnoreEmpty\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\003\272H\007\032\002" + + " \000\330\001\001R\003val\"\\\n2EditionsScalarLegacyRequir" + + "edIgnoreEmptyWithDefault\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)EditionsScal" + + "arLegacyRequiredIgnoreDefault\022!\n\003val\030\001 \001" + + "(\005B\017\252\001\002\010\003\272H\007\032\002 \000\330\001\002R\003val\"^\n4EditionsScal" + + "arLegacyRequiredIgnoreDefaultWithDefault" + + "\022&\n\003val\030\001 \001(\005:\003-42B\017\252\001\002\010\003\272H\007\032\002 \000\330\001\002R\003val" + + "\"\374\001\n0EditionsMessageExplicitPresenceIgno" + + "reUnspecified\022\256\001\n\003val\030\001 \001(\0132T.buf.valida" + + "te.conformance.cases.EditionsMessageExpl" + + "icitPresenceIgnoreUnspecified.MsgBF\272HC\272\001" + + "@\n#proto.editions.message.ignore.empty\022\006" + + "foobar\032\021this.val == \'foo\'R\003val\032\027\n\003Msg\022\020\n" + + "\003val\030\001 \001(\tR\003val\"\223\002\n9EditionsMessageExpli" + + "citPresenceDelimitedIgnoreUnspecified\022\274\001" + + "\n\003val\030\001 \001(\0132].buf.validate.conformance.c" + + "ases.EditionsMessageExplicitPresenceDeli" + + "mitedIgnoreUnspecified.MsgBK\252\001\002(\002\272HC\272\001@\n" + + "#proto.editions.message.ignore.empty\022\006fo" + + "obar\032\021this.val == \'foo\'R\003val\032\027\n\003Msg\022\020\n\003v" + + "al\030\001 \001(\tR\003val\"\363\001\n*EditionsMessageExplici" + + "tPresenceIgnoreEmpty\022\253\001\n\003val\030\001 \001(\0132N.buf" + + ".validate.conformance.cases.EditionsMess" + + "ageExplicitPresenceIgnoreEmpty.MsgBI\272HF\272" + + "\001@\n#proto.editions.message.ignore.empty\022" + + "\006foobar\032\021this.val == \'foo\'\330\001\001R\003val\032\027\n\003Ms" + + "g\022\020\n\003val\030\001 \001(\tR\003val\"\212\002\n3EditionsMessageE" + + "xplicitPresenceDelimitedIgnoreEmpty\022\271\001\n\003" + + "val\030\001 \001(\0132W.buf.validate.conformance.cas" + + "es.EditionsMessageExplicitPresenceDelimi" + + "tedIgnoreEmpty.MsgBN\252\001\002(\002\272HF\272\001@\n#proto.e" + + "ditions.message.ignore.empty\022\006foobar\032\021th" + + "is.val == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 " + + "\001(\tR\003val\"\367\001\n,EditionsMessageExplicitPres" + + "enceIgnoreDefault\022\255\001\n\003val\030\001 \001(\0132P.buf.va" + + "lidate.conformance.cases.EditionsMessage" + + "ExplicitPresenceIgnoreDefault.MsgBI\272HF\272\001" + + "@\n#proto.editions.message.ignore.empty\022\006" + + "foobar\032\021this.val == \'foo\'\330\001\002R\003val\032\027\n\003Msg" + + "\022\020\n\003val\030\001 \001(\tR\003val\"\216\002\n5EditionsMessageEx" + + "plicitPresenceDelimitedIgnoreDefault\022\273\001\n" + + "\003val\030\001 \001(\0132Y.buf.validate.conformance.ca" + + "ses.EditionsMessageExplicitPresenceDelim" + + "itedIgnoreDefault.MsgBN\252\001\002(\002\272HF\272\001@\n#prot" + + "o.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\003val\"\375\001\n.EditionsMessageLegacyReq" + + "uiredIgnoreUnspecified\022\261\001\n\003val\030\001 \001(\0132R.b" + + "uf.validate.conformance.cases.EditionsMe" + + "ssageLegacyRequiredIgnoreUnspecified.Msg" + + "BK\252\001\002\010\003\272HC\272\001@\n#proto.editions.message.ig" + + "nore.empty\022\006foobar\032\021this.val == \'foo\'R\003v" + + "al\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\221\002\n7Editions" + + "MessageLegacyRequiredDelimitedIgnoreUnsp" + + "ecified\022\274\001\n\003val\030\001 \001(\0132[.buf.validate.con" + + "formance.cases.EditionsMessageLegacyRequ" + + "iredDelimitedIgnoreUnspecified.MsgBM\252\001\004\010" + + "\003(\002\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\"\364\001\n(EditionsMess" + + "ageLegacyRequiredIgnoreEmpty\022\256\001\n\003val\030\001 \001" + + "(\0132L.buf.validate.conformance.cases.Edit" + + "ionsMessageLegacyRequiredIgnoreEmpty.Msg" + + "BN\252\001\002\010\003\272HF\272\001@\n#proto.editions.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\"\210\002\n1Editi" + + "onsMessageLegacyRequiredDelimitedIgnoreE" + + "mpty\022\271\001\n\003val\030\001 \001(\0132U.buf.validate.confor" + + "mance.cases.EditionsMessageLegacyRequire" + + "dDelimitedIgnoreEmpty.MsgBP\252\001\004\010\003(\002\272HF\272\001@" + + "\n#proto.editions.message.ignore.empty\022\006f" + + "oobar\032\021this.val == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022" + + "\020\n\003val\030\001 \001(\tR\003val\"\370\001\n*EditionsMessageLeg" + + "acyRequiredIgnoreDefault\022\260\001\n\003val\030\001 \001(\0132N" + + ".buf.validate.conformance.cases.Editions" + + "MessageLegacyRequiredIgnoreDefault.MsgBN" + + "\252\001\002\010\003\272HF\272\001@\n#proto.editions.message.igno" + + "re.empty\022\006foobar\032\021this.val == \'foo\'\330\001\002R\003" + + "val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\214\002\n3Edition" + + "sMessageLegacyRequiredDelimitedIgnoreDef" + + "ault\022\273\001\n\003val\030\001 \001(\0132W.buf.validate.confor" + + "mance.cases.EditionsMessageLegacyRequire" + + "dDelimitedIgnoreDefault.MsgBP\252\001\004\010\003(\002\272HF\272" + + "\001@\n#proto.editions.message.ignore.empty\022" + + "\006foobar\032\021this.val == \'foo\'\330\001\002R\003val\032\027\n\003Ms" + + "g\022\020\n\003val\030\001 \001(\tR\003val\"B\n\036EditionsOneofIgno" + + "reUnspecified\022\033\n\003val\030\001 \001(\005B\007\272H\004\032\002 \000H\000R\003v" + + "alB\003\n\001o\"R\n)EditionsOneofIgnoreUnspecifie" + + "dWithDefault\022 \n\003val\030\001 \001(\005:\003-42B\007\272H\004\032\002 \000H" + + "\000R\003valB\003\n\001o\"?\n\030EditionsOneofIgnoreEmpty\022" + + "\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001H\000R\003valB\003\n\001o\"O\n#" + + "EditionsOneofIgnoreEmptyWithDefault\022#\n\003v" + + "al\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\001H\000R\003valB\003\n\001o\"A\n" + + "\032EditionsOneofIgnoreDefault\022\036\n\003val\030\001 \001(\005" + + "B\n\272H\007\032\002 \000\330\001\002H\000R\003valB\003\n\001o\"Q\n%EditionsOneo" + + "fIgnoreDefaultWithDefault\022#\n\003val\030\001 \001(\005:\003" + + "-42B\n\272H\007\032\002 \000\330\001\002H\000R\003valB\003\n\001o\"?\n!EditionsR" + + "epeatedIgnoreUnspecified\022\032\n\003val\030\001 \003(\005B\010\272" + + "H\005\222\001\002\010\003R\003val\"L\n)EditionsRepeatedExpanded" + + "IgnoreUnspecified\022\037\n\003val\030\001 \003(\005B\r\252\001\002\030\002\272H\005" + + "\222\001\002\010\003R\003val\"<\n\033EditionsRepeatedIgnoreEmpt" + + "y\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\001R\003val\"I\n#Edit" + + "ionsRepeatedExpandedIgnoreEmpty\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\035EditionsR" + + "epeatedIgnoreDefault\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001" + + "\002\010\003\330\001\002R\003val\"K\n%EditionsRepeatedExpandedI" + + "gnoreDefault\022\"\n\003val\030\001 \003(\005B\020\252\001\002\030\002\272H\010\222\001\002\010\003" + + "\330\001\002R\003val\"\271\001\n\034EditionsMapIgnoreUnspecifie" + + "d\022a\n\003val\030\001 \003(\0132E.buf.validate.conformanc" + + "e.cases.EditionsMapIgnoreUnspecified.Val" + + "EntryB\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" + + "\026EditionsMapIgnoreEmpty\022^\n\003val\030\001 \003(\0132?.b" + + "uf.validate.conformance.cases.EditionsMa" + + "pIgnoreEmpty.ValEntryB\013\272H\010\232\001\002\010\003\330\001\001R\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\"\264\001\n\030EditionsMapIgnoreDef" + + "ault\022`\n\003val\030\001 \003(\0132A.buf.validate.conform" + + "ance.cases.EditionsMapIgnoreDefault.ValE" + + "ntryB\013\272H\010\232\001\002\010\003\330\001\002R\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\"G" + + "\n%EditionsRepeatedItemIgnoreUnspecified\022" + + "\036\n\003val\030\001 \003(\005B\014\272H\t\222\001\006\"\004\032\002 \000R\003val\"T\n-Editi" + + "onsRepeatedExpandedItemIgnoreUnspecified" + + "\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" + + "\037EditionsRepeatedItemIgnoreEmpty\022!\n\003val\030" + + "\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\001R\003val\"Q\n\'EditionsR" + + "epeatedExpandedItemIgnoreEmpty\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!Editio" + + "nsRepeatedItemIgnoreDefault\022!\n\003val\030\001 \003(\005" + + "B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\002R\003val\"S\n)EditionsRepeat" + + "edExpandedItemIgnoreDefault\022&\n\003val\030\001 \003(\005" + + "B\024\252\001\002\030\002\272H\014\222\001\t\"\007\032\002 \000\330\001\002R\003val\"\303\001\n\037Editions" + + "MapKeyIgnoreUnspecified\022h\n\003val\030\001 \003(\0132H.b" + + "uf.validate.conformance.cases.EditionsMa" + + "pKeyIgnoreUnspecified.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\031EditionsMa" + + "pKeyIgnoreEmpty\022e\n\003val\030\001 \003(\0132B.buf.valid" + + "ate.conformance.cases.EditionsMapKeyIgno" + + "reEmpty.ValEntryB\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:\0028\001\"\276\001\n\033EditionsMapKeyIgnoreD" + + "efault\022g\n\003val\030\001 \003(\0132D.buf.validate.confo" + + "rmance.cases.EditionsMapKeyIgnoreDefault" + + ".ValEntryB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\002R\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\"\307\001\n!EditionsMapValueIgnoreUnspec" + + "ified\022j\n\003val\030\001 \003(\0132J.buf.validate.confor" + + "mance.cases.EditionsMapValueIgnoreUnspec" + + "ified.ValEntryB\014\272H\t\232\001\006*\004\032\002 \000R\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\001\"\276\001\n\033EditionsMapValueIgnoreEmpt" + + "y\022g\n\003val\030\001 \003(\0132D.buf.validate.conformanc" + + "e.cases.EditionsMapValueIgnoreEmpty.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\"\302\001\n\035EditionsMapValueIgnoreDefault\022i\n\003" + + "val\030\001 \003(\0132F.buf.validate.conformance.cas" + + "es.EditionsMapValueIgnoreDefault.ValEntr" + + "yB\017\272H\014\232\001\t*\007\032\002 \000\330\001\002R\003val\0326\n\010ValEntry\022\020\n\003k" + + "ey\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001B" + + "\334\001\n$build.buf.validate.conformance.cases" + + "B\030IgnoreProtoEditionsProtoP\001\242\002\004BVCC\252\002\036Bu" + + "f.Validate.Conformance.Cases\312\002\036Buf\\Valid" + + "ate\\Conformance\\Cases\342\002*Buf\\Validate\\Con" + + "formance\\Cases\\GPBMetadata\352\002!Buf::Valida" + + "te::Conformance::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_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(6); + 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(7); + 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(8); + 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_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(9); + 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(10); + 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(11); + 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(12); + 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(13); + 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(14); + 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_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(15); + 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(16); + 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(17); + 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(18); + 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(19); + 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(20); + 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_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(21); + 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(22); + 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(23); + 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(24); + 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(25); + 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(26); + 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_EditionsOneofIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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_EditionsRepeatedIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(33); + 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(34); + 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(35); + 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(36); + 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(37); + 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(38); + 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_EditionsMapIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(39); + 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(40); + 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(41); + 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_EditionsRepeatedItemIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(42); + 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(43); + 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(44); + 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(45); + 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(46); + 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(47); + 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_EditionsMapKeyIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(48); + 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(49); + 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(50); + 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_EditionsMapValueIgnoreUnspecified_descriptor = + getDescriptor().getMessageTypes().get(51); + 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(52); + 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(53); + 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", }); + 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 index 2bbf5ffa..d0b745a0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32Const} */ public final class Int32Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32Const.class.getName()); + } // Use Int32Const.newBuilder() to construct. - private Int32Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32Const parseFrom( } public static build.buf.validate.conformance.cases.Int32Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32Const resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32Const) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32Const) } 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 index 066b7503..48c7038f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32ConstOrBuilder extends 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 index be9cee2c..bfbd532a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32ExGTELTE} */ public final class Int32ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32ExGTELTE.class.getName()); + } // Use Int32ExGTELTE.newBuilder() to construct. - private Int32ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.Int32ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Int32ExGTELTE parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32ExGTELTE re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32ExGTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32ExGTELTE) } 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 index d35ac92d..ba867b38 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32ExGTELTEOrBuilder extends 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 index e079c2ae..103c063c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32ExLTGT} */ public final class Int32ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32ExLTGT.class.getName()); + } // Use Int32ExLTGT.newBuilder() to construct. - private Int32ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.Int32ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Int32ExLTGT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32ExLTGT resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32ExLTGT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32ExLTGT) } 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 index 07777067..8a2dd8fb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32ExLTGTOrBuilder extends 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 index d108ce4e..13f30066 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32GT} */ public final class Int32GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32GT.class.getName()); + } // Use Int32GT.newBuilder() to construct. - private Int32GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32GT parseFrom( } public static build.buf.validate.conformance.cases.Int32GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32GT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32GT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GT) } 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 index a3fa4046..5ec53cd4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32GTE} */ public final class Int32GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32GTE.class.getName()); + } // Use Int32GTE.newBuilder() to construct. - private Int32GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32GTE parseFrom( } public static build.buf.validate.conformance.cases.Int32GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32GTE result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32GTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GTE) } 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 index 7ae36e3e..82208c4d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32GTELTE} */ public final class Int32GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32GTELTE.class.getName()); + } // Use Int32GTELTE.newBuilder() to construct. - private Int32GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32GTELTE parseFrom( } public static build.buf.validate.conformance.cases.Int32GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Int32GTELTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32GTELTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32GTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GTELTE) } 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 index b416b850..d46e065b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32GTELTEOrBuilder extends 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 index 58969301..4091cea5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32GTEOrBuilder extends 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 index 6b57a6ea..09624498 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32GTLT} */ public final class Int32GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32GTLT.class.getName()); + } // Use Int32GTLT.newBuilder() to construct. - private Int32GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32GTLT parseFrom( } public static build.buf.validate.conformance.cases.Int32GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32GTLT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32GTLT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GTLT) } 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 index 8b54d302..470d1e86 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32GTLTOrBuilder extends 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 index 62a4c66f..e80cc569 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32GTOrBuilder extends 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 index 9c7effe9..871702f5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32Ignore} */ public final class Int32Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32Ignore.class.getName()); + } // Use Int32Ignore.newBuilder() to construct. - private Int32Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32Ignore parseFrom( } public static build.buf.validate.conformance.cases.Int32Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Int32Ignore parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32Ignore resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32Ignore) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32Ignore) } 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 index 123192c8..1dc8ba24 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32IgnoreOrBuilder extends 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 index c01191a0..9f9d8c41 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32In} */ public final class Int32In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32In.class.getName()); + } // Use Int32In.newBuilder() to construct. - private Int32In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32In parseFrom( } public static build.buf.validate.conformance.cases.Int32In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32In result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32In) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32In) } 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 index 260b7f48..dae12ed9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32InOrBuilder extends 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 index 13466d25..bde7fa63 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32IncorrectType} */ public final class Int32IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32IncorrectType.class.getName()); + } // Use Int32IncorrectType.newBuilder() to construct. - private Int32IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32IncorrectType parseFrom( } public static build.buf.validate.conformance.cases.Int32IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Int32IncorrectType parseDelim java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32IncorrectTy } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32IncorrectType) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32IncorrectType) } 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 index a7ad4823..87f2bfdf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32IncorrectTypeOrBuilder extends 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 index babe934f..e844ce29 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32LT} */ public final class Int32LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32LT.class.getName()); + } // Use Int32LT.newBuilder() to construct. - private Int32LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32LT parseFrom( } public static build.buf.validate.conformance.cases.Int32LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32LT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32LT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32LT) } 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 index 86fe576d..244f576a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32LTE} */ public final class Int32LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32LTE.class.getName()); + } // Use Int32LTE.newBuilder() to construct. - private Int32LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32LTE parseFrom( } public static build.buf.validate.conformance.cases.Int32LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32LTE result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32LTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32LTE) } 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 index 2ba724b5..fde4e5a6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32LTEOrBuilder extends 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 index 56bae25f..672ff7dd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32LTOrBuilder extends 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 index 3abbc9f1..26b9f519 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32None} */ public final class Int32None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32None.class.getName()); + } // Use Int32None.newBuilder() to construct. - private Int32None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32None parseFrom( } public static build.buf.validate.conformance.cases.Int32None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32None result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32None) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32None) } 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 index 8a2c4db4..fd7074ba 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32NoneOrBuilder extends 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 index b2fce0fc..3e603652 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int32NotIn} */ public final class Int32NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32NotIn.class.getName()); + } // Use Int32NotIn.newBuilder() to construct. - private Int32NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Int32NotIn parseFrom( } public static build.buf.validate.conformance.cases.Int32NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int32NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int32NotIn resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int32NotIn) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32NotIn) } 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 index ef8e8457..d3c1f854 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int32NotInOrBuilder extends 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 index 831c4e49..2501c669 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraints.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraints.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64BigConstraints} */ public final class Int64BigConstraints extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64BigConstraints.class.getName()); + } // Use Int64BigConstraints.newBuilder() to construct. - private Int64BigConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64BigConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64BigConstraints() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -407,20 +410,20 @@ public static build.buf.validate.conformance.cases.Int64BigConstraints parseFrom } public static build.buf.validate.conformance.cases.Int64BigConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -428,20 +431,20 @@ public static build.buf.validate.conformance.cases.Int64BigConstraints parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -461,7 +464,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -469,7 +472,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64BigConstraints} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -478,7 +481,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -491,7 +494,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -582,38 +585,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64BigConstrai } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64BigConstraints) { @@ -1160,18 +1131,6 @@ public Builder clearNotin() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64BigConstraints) } 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 index dbb78cdb..098f5001 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraintsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraintsOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64BigConstraintsOrBuilder extends 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 index 8ea39a2b..e4a4849e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64Const} */ public final class Int64Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64Const.class.getName()); + } // Use Int64Const.newBuilder() to construct. - private Int64Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64Const parseFrom( } public static build.buf.validate.conformance.cases.Int64Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64Const resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64Const) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64Const) } 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 index b468bdf5..115aaebb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64ConstOrBuilder extends 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 index cffe6e17..9e37d735 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64ExGTELTE} */ public final class Int64ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64ExGTELTE.class.getName()); + } // Use Int64ExGTELTE.newBuilder() to construct. - private Int64ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.Int64ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Int64ExGTELTE parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64ExGTELTE re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64ExGTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64ExGTELTE) } 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 index 3f69d39f..437c04b3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64ExGTELTEOrBuilder extends 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 index c898f38d..784ed207 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64ExLTGT} */ public final class Int64ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64ExLTGT.class.getName()); + } // Use Int64ExLTGT.newBuilder() to construct. - private Int64ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.Int64ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Int64ExLTGT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64ExLTGT resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64ExLTGT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64ExLTGT) } 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 index d38a8b11..489e5ab2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64ExLTGTOrBuilder extends 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 index d1bcaa0c..b885fa3f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64GT} */ public final class Int64GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64GT.class.getName()); + } // Use Int64GT.newBuilder() to construct. - private Int64GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64GT parseFrom( } public static build.buf.validate.conformance.cases.Int64GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64GT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64GT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GT) } 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 index 0644ba00..7c2655b6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64GTE} */ public final class Int64GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64GTE.class.getName()); + } // Use Int64GTE.newBuilder() to construct. - private Int64GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64GTE parseFrom( } public static build.buf.validate.conformance.cases.Int64GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64GTE result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64GTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GTE) } 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 index 3099b058..bb1480b5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64GTELTE} */ public final class Int64GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64GTELTE.class.getName()); + } // Use Int64GTELTE.newBuilder() to construct. - private Int64GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64GTELTE parseFrom( } public static build.buf.validate.conformance.cases.Int64GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Int64GTELTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64GTELTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64GTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GTELTE) } 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 index 9d1f7fd5..e6026518 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64GTELTEOrBuilder extends 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 index bc673ebf..fc435c8b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64GTEOrBuilder extends 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 index b6ca732c..1ef17ad8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64GTLT} */ public final class Int64GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64GTLT.class.getName()); + } // Use Int64GTLT.newBuilder() to construct. - private Int64GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64GTLT parseFrom( } public static build.buf.validate.conformance.cases.Int64GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64GTLT result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64GTLT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GTLT) } 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 index b27affb6..7e9dc6f3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64GTLTOrBuilder extends 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 index df355692..48e89908 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64GTOrBuilder extends 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 index 15c31607..5b3e29df 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64Ignore} */ public final class Int64Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64Ignore.class.getName()); + } // Use Int64Ignore.newBuilder() to construct. - private Int64Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64Ignore parseFrom( } public static build.buf.validate.conformance.cases.Int64Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Int64Ignore parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64Ignore resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64Ignore) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64Ignore) } 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 index b6204edc..441406ed 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64IgnoreOrBuilder extends 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 index f68af7b8..8d13dd76 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64In} */ public final class Int64In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64In.class.getName()); + } // Use Int64In.newBuilder() to construct. - private Int64In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64In parseFrom( } public static build.buf.validate.conformance.cases.Int64In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64In result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64In) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64In) } 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 index 5194709d..c9734caf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64InOrBuilder extends 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 index c07ac1bd..192067bb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64IncorrectType} */ public final class Int64IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64IncorrectType.class.getName()); + } // Use Int64IncorrectType.newBuilder() to construct. - private Int64IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64IncorrectType parseFrom( } public static build.buf.validate.conformance.cases.Int64IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.Int64IncorrectType parseDelim java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64IncorrectTy } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64IncorrectType) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64IncorrectType) } 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 index 71d90918..979f7ad1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64IncorrectTypeOrBuilder extends 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 index bd413c6e..5b1045b0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64LT} */ public final class Int64LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64LT.class.getName()); + } // Use Int64LT.newBuilder() to construct. - private Int64LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64LT parseFrom( } public static build.buf.validate.conformance.cases.Int64LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64LT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64LT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64LT) } 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 index d5e94d09..bb513093 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64LTE} */ public final class Int64LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64LTE.class.getName()); + } // Use Int64LTE.newBuilder() to construct. - private Int64LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64LTE parseFrom( } public static build.buf.validate.conformance.cases.Int64LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64LTE result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64LTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64LTE) } 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 index ae11c085..2e8538c8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptional.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptional.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64LTEOptional} */ public final class Int64LTEOptional extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64LTEOptional.class.getName()); + } // Use Int64LTEOptional.newBuilder() to construct. - private Int64LTEOptional(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64LTEOptional(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64LTEOptional() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -164,20 +167,20 @@ public static build.buf.validate.conformance.cases.Int64LTEOptional parseFrom( } public static build.buf.validate.conformance.cases.Int64LTEOptional parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -185,20 +188,20 @@ public static build.buf.validate.conformance.cases.Int64LTEOptional parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -218,7 +221,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -226,7 +229,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64LTEOptional} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -235,7 +238,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -248,7 +251,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -298,38 +301,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64LTEOptional result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64LTEOptional) { @@ -432,18 +403,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64LTEOptional) } 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 index db8a2cf9..5b79e5e8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptionalOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptionalOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64LTEOptionalOrBuilder extends 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 index 537eab9f..f596bae1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64LTEOrBuilder extends 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 index 27d9ff5e..0dedd9ba 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64LTOrBuilder extends 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 index cf4c57b2..d7228d58 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64None} */ public final class Int64None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64None.class.getName()); + } // Use Int64None.newBuilder() to construct. - private Int64None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64None parseFrom( } public static build.buf.validate.conformance.cases.Int64None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64None result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64None) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64None) } 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 index be97108d..4e3123c7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64NoneOrBuilder extends 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 index 964a35da..b1c6affb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Int64NotIn} */ public final class Int64NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64NotIn.class.getName()); + } // Use Int64NotIn.newBuilder() to construct. - private Int64NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.Int64NotIn parseFrom( } public static build.buf.validate.conformance.cases.Int64NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Int64NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Int64NotIn resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Int64NotIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64NotIn) } 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 index 533ae3c1..52cb1016 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Int64NotInOrBuilder extends 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 index a60daf95..250bcf2c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessage.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessage.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.KitchenSinkMessage} */ public final class KitchenSinkMessage extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + KitchenSinkMessage.class.getName()); + } // Use KitchenSinkMessage.newBuilder() to construct. - private KitchenSinkMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private KitchenSinkMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private KitchenSinkMessage() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.KitchenSinkMessage parseFrom( } public static build.buf.validate.conformance.cases.KitchenSinkMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.KitchenSinkMessage parseDelim java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.KitchenSinkMessage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.KitchenSinkMessa result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.KitchenSinkMessage) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.ComplexTestMsg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getValOrBuil /** * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -533,18 +504,6 @@ public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getValOrBuil } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.KitchenSinkMessage) } 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 index 83cd3226..1f3e36e0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface KitchenSinkMessageOrBuilder extends 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 index 698f5e0b..ed984303 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + KitchenSinkProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,17 +28,17 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -96,32 +106,33 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - 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(); } // @@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 index 4a63683a..7bf7f981 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefined.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapEnumDefined} */ public final class MapEnumDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapEnumDefined.class.getName()); + } // Use MapEnumDefined.newBuilder() to construct. - private MapEnumDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapEnumDefined() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -204,7 +207,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -300,20 +303,20 @@ public static build.buf.validate.conformance.cases.MapEnumDefined parseFrom( } public static build.buf.validate.conformance.cases.MapEnumDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -321,20 +324,20 @@ public static build.buf.validate.conformance.cases.MapEnumDefined parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -354,7 +357,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -362,7 +365,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapEnumDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -393,7 +396,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -406,7 +409,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -454,38 +457,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapEnumDefined r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapEnumDefined) { @@ -760,18 +731,6 @@ public Builder putAllValValue( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapEnumDefined) } 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 index d74e50a9..7cded33c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapEnumDefinedOrBuilder extends 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 index 96655291..5af49ef1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExact.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExact.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapExact} */ public final class MapExact extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapExact.class.getName()); + } // Use MapExact.newBuilder() to construct. - private MapExact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapExact(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapExact() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeLongMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.MapExact parseFrom( } public static build.buf.validate.conformance.cases.MapExact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapExact} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapExact result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapExact) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapExact) } 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 index 674b1c6b..a2815522 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnore.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapExactIgnore} */ public final class MapExactIgnore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapExactIgnore.class.getName()); + } // Use MapExactIgnore.newBuilder() to construct. - private MapExactIgnore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapExactIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapExactIgnore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeLongMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.MapExactIgnore parseFrom( } public static build.buf.validate.conformance.cases.MapExactIgnore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ public static build.buf.validate.conformance.cases.MapExactIgnore parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapExactIgnore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapExactIgnore r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapExactIgnore) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapExactIgnore) } 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 index ec6fb267..5caadbd7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnoreOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapExactIgnoreOrBuilder extends 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 index b77e5ab6..fb77ddd6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapExactOrBuilder extends 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 index 47eadae8..7d98e8d5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefined.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapExternalEnumDefined} */ public final class MapExternalEnumDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapExternalEnumDefined.class.getName()); + } // Use MapExternalEnumDefined.newBuilder() to construct. - private MapExternalEnumDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapExternalEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapExternalEnumDefined() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -204,7 +207,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -300,20 +303,20 @@ public static build.buf.validate.conformance.cases.MapExternalEnumDefined parseF } public static build.buf.validate.conformance.cases.MapExternalEnumDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -321,20 +324,20 @@ public static build.buf.validate.conformance.cases.MapExternalEnumDefined parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -354,7 +357,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -362,7 +365,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapExternalEnumDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -393,7 +396,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -406,7 +409,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -454,38 +457,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapExternalEnumD } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapExternalEnumDefined) { @@ -760,18 +731,6 @@ public Builder putAllValValue( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapExternalEnumDefined) } 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 index dce21eea..778f5108 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapExternalEnumDefinedOrBuilder extends 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 index 0e610cff..50aad076 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeys.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeys.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapKeys} */ public final class MapKeys extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapKeys.class.getName()); + } // Use MapKeys.newBuilder() to construct. - private MapKeys(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapKeys(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapKeys() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeLongMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.MapKeys parseFrom( } public static build.buf.validate.conformance.cases.MapKeys parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapKeys} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapKeys result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapKeys) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapKeys) } 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 index 4b5065a4..6ee7bbe2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapKeysOrBuilder extends 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 index deaba71c..8bd2a540 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPattern.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPattern.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapKeysPattern} */ public final class MapKeysPattern extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapKeysPattern.class.getName()); + } // Use MapKeysPattern.newBuilder() to construct. - private MapKeysPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapKeysPattern(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapKeysPattern() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.MapKeysPattern parseFrom( } public static build.buf.validate.conformance.cases.MapKeysPattern parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ public static build.buf.validate.conformance.cases.MapKeysPattern parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapKeysPattern} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapKeysPattern r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapKeysPattern) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapKeysPattern) } 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 index 6afc29a0..97f6b6f8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPatternOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPatternOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapKeysPatternOrBuilder extends 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 index c892a4c9..e97e39f1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMax.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMax.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapMax} */ public final class MapMax extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapMax.class.getName()); + } // Use MapMax.newBuilder() to construct. - private MapMax(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapMax(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapMax() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeLongMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.MapMax parseFrom( } public static build.buf.validate.conformance.cases.MapMax parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapMax} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapMax result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapMax) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapMax) } 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 index a321b5ba..5fb2ac5e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMaxOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMaxOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapMaxOrBuilder extends 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 index c12d6265..f39c7f47 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMin.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMin.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapMin} */ public final class MapMin extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapMin.class.getName()); + } // Use MapMin.newBuilder() to construct. - private MapMin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapMin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapMin() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.MapMin parseFrom( } public static build.buf.validate.conformance.cases.MapMin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapMin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapMin result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapMin) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapMin) } 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 index 441f7b39..58a395fc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMax.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMax.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapMinMax} */ public final class MapMinMax extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapMinMax.class.getName()); + } // Use MapMinMax.newBuilder() to construct. - private MapMinMax(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapMinMax(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapMinMax() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.MapMinMax parseFrom( } public static build.buf.validate.conformance.cases.MapMinMax parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapMinMax} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapMinMax result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapMinMax) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapMinMax) } 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 index 710b6d04..4cc7f955 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMaxOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMaxOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapMinMaxOrBuilder extends 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 index 3f82e173..1d906a50 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapMinOrBuilder extends 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 index 8891106b..bcfe97f4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapNone.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapNone} */ public final class MapNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapNone.class.getName()); + } // Use MapNone.newBuilder() to construct. - private MapNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.MapNone parseFrom( } public static build.buf.validate.conformance.cases.MapNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapNone result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapNone) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapNone) } 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 index 4781d40f..2e77e2a6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapNoneOrBuilder extends 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 index 265220c4..c1036963 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursive.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursive.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapRecursive} */ public final class MapRecursive extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapRecursive.class.getName()); + } // Use MapRecursive.newBuilder() to construct. - private MapRecursive(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapRecursive(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapRecursive() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -71,32 +74,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.MapRecursive.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -156,8 +161,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -168,8 +173,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -240,20 +245,20 @@ public static build.buf.validate.conformance.cases.MapRecursive.Msg parseFrom( } public static build.buf.validate.conformance.cases.MapRecursive.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +266,20 @@ public static build.buf.validate.conformance.cases.MapRecursive.Msg parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +299,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +307,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapRecursive.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -311,7 +316,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -324,7 +329,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -371,38 +376,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapRecursive.Msg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapRecursive.Msg) { @@ -539,18 +512,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapRecursive.Msg) } @@ -696,7 +657,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -792,20 +753,20 @@ public static build.buf.validate.conformance.cases.MapRecursive parseFrom( } public static build.buf.validate.conformance.cases.MapRecursive parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -813,20 +774,20 @@ public static build.buf.validate.conformance.cases.MapRecursive parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -846,7 +807,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -854,7 +815,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapRecursive} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -885,7 +846,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -898,7 +859,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -945,38 +906,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapRecursive res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapRecursive) { @@ -1198,18 +1127,6 @@ public build.buf.validate.conformance.cases.MapRecursive.Msg.Builder putValBuild } return (build.buf.validate.conformance.cases.MapRecursive.Msg.Builder) entry; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapRecursive) } 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 index de3ccf19..ee165b9b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursiveOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursiveOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapRecursiveOrBuilder extends 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 index 46c525f0..13a4a992 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValues.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValues.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapValues} */ public final class MapValues extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapValues.class.getName()); + } // Use MapValues.newBuilder() to construct. - private MapValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapValues(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapValues() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.MapValues parseFrom( } public static build.buf.validate.conformance.cases.MapValues parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapValues} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapValues result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapValues) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapValues) } 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 index 8c31b6e3..01068adb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapValuesOrBuilder extends 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 index ea0ce1a9..e231de60 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPattern.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPattern.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MapValuesPattern} */ public final class MapValuesPattern extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapValuesPattern.class.getName()); + } // Use MapValuesPattern.newBuilder() to construct. - private MapValuesPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapValuesPattern(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapValuesPattern() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.MapValuesPattern parseFrom( } public static build.buf.validate.conformance.cases.MapValuesPattern parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ public static build.buf.validate.conformance.cases.MapValuesPattern parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MapValuesPattern} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MapValuesPattern } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MapValuesPattern) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapValuesPattern) } 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 index f608590f..a0b04681 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPatternOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPatternOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MapValuesPatternOrBuilder extends 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 index 283e5a8d..bc82f9ce 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapsProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MapsProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapsProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,137 +28,137 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_MapNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -233,171 +243,172 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_MapNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index a3c3a0fb..e0bbfb10 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Message.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Message.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Message} */ public final class Message extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Message.class.getName()); + } // Use Message.newBuilder() to construct. - private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Message() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Message parseFrom( } public static build.buf.validate.conformance.cases.Message parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Message} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Message result) result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Message) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { /** * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -533,18 +504,6 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Message) } 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 index 027d7c33..1017c3a0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackage.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackage.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageCrossPackage} */ public final class MessageCrossPackage extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageCrossPackage.class.getName()); + } // Use MessageCrossPackage.newBuilder() to construct. - private MessageCrossPackage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageCrossPackage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageCrossPackage() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.MessageCrossPackage parseFrom } public static build.buf.validate.conformance.cases.MessageCrossPackage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.MessageCrossPackage parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageCrossPackage} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MessageCrossPack result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageCrossPackage) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.other_package.Embed val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValO /** * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -533,18 +504,6 @@ public build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValO } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageCrossPackage) } 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 index 3f016b49..ad0d9017 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageCrossPackageOrBuilder extends 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 index e50e205a..537246d9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabled.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabled.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageDisabled} */ public final class MessageDisabled extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageDisabled.class.getName()); + } // Use MessageDisabled.newBuilder() to construct. - private MessageDisabled(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageDisabled(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageDisabled() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.MessageDisabled parseFrom( } public static build.buf.validate.conformance.cases.MessageDisabled parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.MessageDisabled parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageDisabled} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MessageDisabled } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageDisabled) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageDisabled) } 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 index a2eec7df..c13aa9ee 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabledOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabledOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageDisabledOrBuilder extends 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 index 7015954f..c47de2b2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageNone} */ public final class MessageNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageNone.class.getName()); + } // Use MessageNone.newBuilder() to construct. - private MessageNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -47,31 +50,33 @@ public interface NoneMsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.MessageNone.NoneMsg} */ public static final class NoneMsg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + NoneMsg.class.getName()); + } // Use NoneMsg.newBuilder() to construct. - private NoneMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private NoneMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private NoneMsg() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -166,20 +171,20 @@ public static build.buf.validate.conformance.cases.MessageNone.NoneMsg parseFrom } public static build.buf.validate.conformance.cases.MessageNone.NoneMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -187,20 +192,20 @@ public static build.buf.validate.conformance.cases.MessageNone.NoneMsg parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -220,7 +225,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -228,7 +233,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageNone.NoneMsg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -237,7 +242,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -250,7 +255,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -287,38 +292,6 @@ public build.buf.validate.conformance.cases.MessageNone.NoneMsg buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageNone.NoneMsg) { @@ -372,18 +345,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageNone.NoneMsg) } @@ -567,20 +528,20 @@ public static build.buf.validate.conformance.cases.MessageNone parseFrom( } public static build.buf.validate.conformance.cases.MessageNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -588,20 +549,20 @@ public static build.buf.validate.conformance.cases.MessageNone parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -621,7 +582,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -629,7 +590,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -638,7 +599,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -651,12 +612,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -713,38 +674,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MessageNone resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageNone) { @@ -811,7 +740,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.MessageNone.NoneMsg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -917,11 +846,11 @@ public build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder getValO /** * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -930,18 +859,6 @@ public build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder getValO } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageNone) } 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 index 5a20d9e1..04fd9614 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageNoneOrBuilder extends 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 index 584c4a05..a5ad1125 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageOrBuilder extends 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 index 348e6941..afd47448 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequired.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageRequired} */ public final class MessageRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageRequired.class.getName()); + } // Use MessageRequired.newBuilder() to construct. - private MessageRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageRequired() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.MessageRequired parseFrom( } public static build.buf.validate.conformance.cases.MessageRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.MessageRequired parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MessageRequired result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageRequired) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { /** * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -533,18 +504,6 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageRequired) } 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 index 3a196e91..ad65fe8c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptional.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptional.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageRequiredButOptional} */ public final class MessageRequiredButOptional extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageRequiredButOptional.class.getName()); + } // Use MessageRequiredButOptional.newBuilder() to construct. - private MessageRequiredButOptional(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageRequiredButOptional(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageRequiredButOptional() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.MessageRequiredButOptional pa } public static build.buf.validate.conformance.cases.MessageRequiredButOptional parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.MessageRequiredButOptional pa java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageRequiredButOptional} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MessageRequiredB result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageRequiredButOptional) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { /** * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -533,18 +504,6 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageRequiredButOptional) } 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 index 0ac2aedc..fbc61e2e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptionalOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptionalOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageRequiredButOptionalOrBuilder extends 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 index aa548719..1b290ac9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageRequiredOneof} */ public final class MessageRequiredOneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageRequiredOneof.class.getName()); + } // Use MessageRequiredOneof.newBuilder() to construct. - private MessageRequiredOneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageRequiredOneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageRequiredOneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -222,20 +225,20 @@ public static build.buf.validate.conformance.cases.MessageRequiredOneof parseFro } public static build.buf.validate.conformance.cases.MessageRequiredOneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -243,20 +246,20 @@ public static build.buf.validate.conformance.cases.MessageRequiredOneof parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -276,7 +279,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -284,7 +287,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageRequiredOneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -293,7 +296,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -306,7 +309,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -364,38 +367,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.MessageRequ } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageRequiredOneof) { @@ -482,7 +453,7 @@ public Builder clearOne() { private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -605,14 +576,14 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { /** * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { if (!(oneCase_ == 1)) { one_ = build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); } - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -623,18 +594,6 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { onChanged(); return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageRequiredOneof) } 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 index c2236cad..a5b1ece8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageRequiredOneofOrBuilder extends 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 index 271dc282..f86455ff 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageRequiredOrBuilder extends 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 index 29a131f0..724b11d0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkip.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkip.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageSkip} */ public final class MessageSkip extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageSkip.class.getName()); + } // Use MessageSkip.newBuilder() to construct. - private MessageSkip(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageSkip(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageSkip() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.MessageSkip parseFrom( } public static build.buf.validate.conformance.cases.MessageSkip parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.MessageSkip parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageSkip} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MessageSkip resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageSkip) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { /** * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -533,18 +504,6 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageSkip) } 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 index 0f2e30fc..3133cac3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkipOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkipOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageSkipOrBuilder extends 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 index 96d8c07f..28ffcac6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInside.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInside.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MessageWith3dInside} */ public final class MessageWith3dInside extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageWith3dInside.class.getName()); + } // Use MessageWith3dInside.newBuilder() to construct. - private MessageWith3dInside(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageWith3dInside(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageWith3dInside() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -127,20 +130,20 @@ public static build.buf.validate.conformance.cases.MessageWith3dInside parseFrom } public static build.buf.validate.conformance.cases.MessageWith3dInside parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -148,20 +151,20 @@ public static build.buf.validate.conformance.cases.MessageWith3dInside parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -181,7 +184,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -189,7 +192,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MessageWith3dInside} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -198,7 +201,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -211,7 +214,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -248,38 +251,6 @@ public build.buf.validate.conformance.cases.MessageWith3dInside buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MessageWith3dInside) { @@ -333,18 +304,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageWith3dInside) } 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 index 12a558ee..29b66692 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInsideOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInsideOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MessageWith3dInsideOrBuilder extends 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 index 52fc05a4..769427d3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessagesProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MessagesProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessagesProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,57 +28,57 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_TestMsg_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -120,69 +130,72 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_TestMsg_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); @@ -190,8 +203,6 @@ public static void registerAllExtensions( registry.add(build.buf.validate.ValidateProto.oneof); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index 971a199a..5a5c881c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMaps.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMaps.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.MultipleMaps} */ public final class MultipleMaps extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MultipleMaps.class.getName()); + } // Use MultipleMaps.newBuilder() to construct. - private MultipleMaps(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MultipleMaps(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MultipleMaps() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -48,7 +51,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -302,19 +305,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetFirst(), FirstDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetSecond(), SecondDefaultEntryHolder.defaultEntry, 2); - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetThird(), @@ -442,20 +445,20 @@ public static build.buf.validate.conformance.cases.MultipleMaps parseFrom( } public static build.buf.validate.conformance.cases.MultipleMaps parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -463,20 +466,20 @@ public static build.buf.validate.conformance.cases.MultipleMaps parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -496,7 +499,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -504,7 +507,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.MultipleMaps} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -543,7 +546,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -556,7 +559,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -614,38 +617,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.MultipleMaps res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.MultipleMaps) { @@ -1113,18 +1084,6 @@ public Builder putAllThird( bitField0_ |= 0x00000004; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MultipleMaps) } 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 index 9c51b1a9..45071b68 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMapsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMapsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface MultipleMapsOrBuilder extends 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 index 68acb6e3..4ff00a13 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/NumbersProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/NumbersProto.java @@ -1,11 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + NumbersProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,862 +28,862 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_FloatNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_FloatIgnore_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_DoubleNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_DoubleIgnore_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Int32None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Int64None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_UInt32None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_UInt64None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_SInt32None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_SInt64None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Fixed32None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Fixed64None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_SFixed32None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_SFixed64None_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_Int64LTEOptional_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -1113,1041 +1123,1042 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_FloatNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_FloatFinite_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(14); internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DoubleNone_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(16); internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(17); internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(18); internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(19); internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(20); internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(21); internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(22); internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(23); internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(24); internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(25); internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(26); internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(27); internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(29); internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Int32None_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(31); internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(32); internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(33); internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(34); internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(35); internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(36); internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(37); internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(38); internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(39); internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(40); internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(41); internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(42); internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(43); internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Int64None_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(45); internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(46); internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(47); internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(48); internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(49); internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(50); internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(51); internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(52); internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(53); internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(54); internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(55); internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(56); internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(57); internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(58); internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_UInt32None_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(60); internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(61); internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(62); internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(63); internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(64); internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(65); internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(66); internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(67); internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(68); internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(69); internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(70); internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(71); internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(72); internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_UInt64None_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(74); internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(75); internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(76); internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(77); internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(78); internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(79); internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(80); internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(81); internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(82); internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(83); internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(84); internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(85); internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(86); internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_SInt32None_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(88); internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(89); internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(90); internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(91); internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(92); internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(93); internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(94); internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(95); internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(96); internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(97); internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(98); internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(99); internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(100); internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_SInt64None_descriptor = getDescriptor().getMessageTypes().get(101); internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(102); internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(103); internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(104); internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(105); internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(106); internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(107); internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(108); internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(109); internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(110); internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(111); internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(112); internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(113); internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(114); internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Fixed32None_descriptor = getDescriptor().getMessageTypes().get(115); internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(116); internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(117); internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(118); internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(119); internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(120); internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(121); internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(122); internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(123); internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(124); internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(125); internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(126); internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(127); internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(128); internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Fixed64None_descriptor = getDescriptor().getMessageTypes().get(129); internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(130); internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(131); internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(132); internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(133); internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(134); internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(135); internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(136); internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(137); internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(138); internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(139); internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(140); internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(141); internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(142); internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_SFixed32None_descriptor = getDescriptor().getMessageTypes().get(143); internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(144); internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(145); internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(146); internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(147); internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(148); internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(149); internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(150); internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(151); internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(152); internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(153); internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(154); internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(155); internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(156); internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_SFixed64None_descriptor = getDescriptor().getMessageTypes().get(157); internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(158); internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(159); internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(160); internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(161); internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(162); internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(163); internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(164); internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(165); internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(166); internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(167); internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(168); internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(169); internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(170); internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor = getDescriptor().getMessageTypes().get(171); internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index 9267879b..cf5bef1c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Oneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Oneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Oneof} */ public final class Oneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Oneof.class.getName()); + } // Use Oneof.newBuilder() to construct. - private Oneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Oneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -202,7 +205,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (oCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, o_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); } if (oCase_ == 2) { output.writeInt32( @@ -221,7 +224,7 @@ public int getSerializedSize() { size = 0; if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, o_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); } if (oCase_ == 2) { size += com.google.protobuf.CodedOutputStream @@ -330,20 +333,20 @@ public static build.buf.validate.conformance.cases.Oneof parseFrom( } public static build.buf.validate.conformance.cases.Oneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -351,20 +354,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -384,7 +387,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -392,7 +395,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Oneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -401,7 +404,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -414,7 +417,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -472,38 +475,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Oneof resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Oneof) { @@ -746,7 +717,7 @@ public Builder clearY() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -869,14 +840,14 @@ public build.buf.validate.conformance.cases.TestOneofMsgOrBuilder getZOrBuilder( /** * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestOneofMsg, build.buf.validate.conformance.cases.TestOneofMsg.Builder, build.buf.validate.conformance.cases.TestOneofMsgOrBuilder> getZFieldBuilder() { if (zBuilder_ == null) { if (!(oCase_ == 3)) { o_ = build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); } - zBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -887,18 +858,6 @@ public build.buf.validate.conformance.cases.TestOneofMsgOrBuilder getZOrBuilder( onChanged(); return zBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Oneof) } 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 index 9b19d82a..97fff7ea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.OneofNone} */ public final class OneofNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + OneofNone.class.getName()); + } // Use OneofNone.newBuilder() to construct. - private OneofNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private OneofNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OneofNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -169,7 +172,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (oCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, o_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); } if (oCase_ == 2) { output.writeInt32( @@ -185,7 +188,7 @@ public int getSerializedSize() { size = 0; if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, o_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); } if (oCase_ == 2) { size += com.google.protobuf.CodedOutputStream @@ -282,20 +285,20 @@ public static build.buf.validate.conformance.cases.OneofNone parseFrom( } public static build.buf.validate.conformance.cases.OneofNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -303,20 +306,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -336,7 +339,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -344,7 +347,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.OneofNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -353,7 +356,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -366,7 +369,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -417,38 +420,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.OneofNone r result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.OneofNone) { @@ -679,18 +650,6 @@ public Builder clearY() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.OneofNone) } 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 index c5d3ff1c..fc0962ad 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface OneofNoneOrBuilder extends 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 index a1074ca1..507b22fe 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface OneofOrBuilder extends 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 index 68acda9e..e6018f80 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequired.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.OneofRequired} */ public final class OneofRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + OneofRequired.class.getName()); + } // Use OneofRequired.newBuilder() to construct. - private OneofRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private OneofRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OneofRequired() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -215,7 +218,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (oCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, o_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); } if (oCase_ == 2) { output.writeInt32( @@ -239,7 +242,7 @@ public int getSerializedSize() { size = 0; if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, o_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); } if (oCase_ == 2) { size += com.google.protobuf.CodedOutputStream @@ -362,20 +365,20 @@ public static build.buf.validate.conformance.cases.OneofRequired parseFrom( } public static build.buf.validate.conformance.cases.OneofRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -383,20 +386,20 @@ public static build.buf.validate.conformance.cases.OneofRequired parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -416,7 +419,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -424,7 +427,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.OneofRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -433,7 +436,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -446,7 +449,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -497,38 +500,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.OneofRequir result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.OneofRequired) { @@ -861,18 +832,6 @@ public Builder clearUnderAnd1Number() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.OneofRequired) } 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 index d071739a..cf6fc06d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface OneofRequiredOrBuilder extends 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 index c5a1831e..04543b2c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredField.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredField.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.OneofRequiredWithRequiredField} */ public final class OneofRequiredWithRequiredField extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + OneofRequiredWithRequiredField.class.getName()); + } // Use OneofRequiredWithRequiredField.newBuilder() to construct. - private OneofRequiredWithRequiredField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private OneofRequiredWithRequiredField(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OneofRequiredWithRequiredField() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -200,10 +203,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (oCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, o_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); } if (oCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, o_); + com.google.protobuf.GeneratedMessage.writeString(output, 2, o_); } getUnknownFields().writeTo(output); } @@ -215,10 +218,10 @@ public int getSerializedSize() { size = 0; if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, o_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); } if (oCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, o_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, o_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,20 +313,20 @@ public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredFiel } public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -331,20 +334,20 @@ public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredFiel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -364,7 +367,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -372,7 +375,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.OneofRequiredWithRequiredField} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -381,7 +384,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -394,7 +397,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -445,38 +448,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.OneofRequir result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.OneofRequiredWithRequiredField) { @@ -761,18 +732,6 @@ public Builder setBBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.OneofRequiredWithRequiredField) } 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 index a47518c8..aa7adb7c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredFieldOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredFieldOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface OneofRequiredWithRequiredFieldOrBuilder extends 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 index c6644591..91cdc814 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofsProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofsProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + OneofsProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,27 +28,27 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -78,40 +88,41 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) 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 index 884edfa9..0d07e0e1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefault.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreDefault} */ public final class Proto2MapIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapIgnoreDefault.class.getName()); + } // Use Proto2MapIgnoreDefault.newBuilder() to construct. - private Proto2MapIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault parseF } public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreD } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreDefault) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreDefault) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault getDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapIgnoreDefault parsePartialFrom( 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 index a2b82d5a..488bdf81 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapIgnoreDefaultOrBuilder extends 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 index 14e43355..746a91e1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmpty.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreEmpty} */ public final class Proto2MapIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapIgnoreEmpty.class.getName()); + } // Use Proto2MapIgnoreEmpty.newBuilder() to construct. - private Proto2MapIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty parseFro } public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreE } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreEmpty) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty getDefau return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapIgnoreEmpty parsePartialFrom( 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 index edb41fbe..f7bf610e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapIgnoreEmptyOrBuilder extends 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 index 8f59931a..b08bf277 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecified.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreUnspecified} */ public final class Proto2MapIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapIgnoreUnspecified.class.getName()); + } // Use Proto2MapIgnoreUnspecified.newBuilder() to construct. - private Proto2MapIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified pa } public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified pa java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreU } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified ge return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapIgnoreUnspecified parsePartialFrom( 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 index 861a3bd1..4cf151c2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapIgnoreUnspecifiedOrBuilder extends 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 index 5f1756ae..139ab5d9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefault.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault} */ public final class Proto2MapKeyIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapKeyIgnoreDefault.class.getName()); + } // Use Proto2MapKeyIgnoreDefault.newBuilder() to construct. - private Proto2MapKeyIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapKeyIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapKeyIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault par } public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault get return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapKeyIgnoreDefault parsePartialFrom( 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 index e59cbce7..e0579310 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapKeyIgnoreDefaultOrBuilder extends 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 index fd287a5a..27746c00 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmpty.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty} */ public final class Proto2MapKeyIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapKeyIgnoreEmpty.class.getName()); + } // Use Proto2MapKeyIgnoreEmpty.newBuilder() to construct. - private Proto2MapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapKeyIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty parse } public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty getDe return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapKeyIgnoreEmpty parsePartialFrom( 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 index 86cb77db..dd35b7e9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapKeyIgnoreEmptyOrBuilder extends 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 index 50408093..19a55bb2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecified.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified} */ public final class Proto2MapKeyIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapKeyIgnoreUnspecified.class.getName()); + } // Use Proto2MapKeyIgnoreUnspecified.newBuilder() to construct. - private Proto2MapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapKeyIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified } public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapKeyIgnoreUnspecified parsePartialFrom( 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 index 8210cd32..e040e75d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapKeyIgnoreUnspecifiedOrBuilder extends 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 index 0963b67d..89f3b8c4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefault.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreDefault} */ public final class Proto2MapValueIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapValueIgnoreDefault.class.getName()); + } // Use Proto2MapValueIgnoreDefault.newBuilder() to construct. - private Proto2MapValueIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapValueIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapValueIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault p } public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault p java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault g return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapValueIgnoreDefault parsePartialFrom( 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 index 502fdb5f..87a8ce91 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapValueIgnoreDefaultOrBuilder extends 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 index fe5d3d83..e197a55c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmpty.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty} */ public final class Proto2MapValueIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapValueIgnoreEmpty.class.getName()); + } // Use Proto2MapValueIgnoreEmpty.newBuilder() to construct. - private Proto2MapValueIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapValueIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapValueIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty par } public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty get return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapValueIgnoreEmpty parsePartialFrom( 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 index fc859f61..e45e0a91 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapValueIgnoreEmptyOrBuilder extends 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 index d84da21e..6ac29360 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecified.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified} */ public final class Proto2MapValueIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MapValueIgnoreUnspecified.class.getName()); + } // Use Proto2MapValueIgnoreUnspecified.newBuilder() to construct. - private Proto2MapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MapValueIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecifi } public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecifi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) } @@ -641,7 +600,7 @@ public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecifi return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MapValueIgnoreUnspecified parsePartialFrom( 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 index 1eb9f2e1..1687400e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MapValueIgnoreUnspecifiedOrBuilder extends 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 index f8723340..9bb200fd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault} */ public final class Proto2MessageOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MessageOptionalIgnoreDefault.class.getName()); + } // Use Proto2MessageOptionalIgnoreDefault.newBuilder() to construct. - private Proto2MessageOptionalIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MessageOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MessageOptionalIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDe } public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDe return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -754,20 +715,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDe } public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -775,20 +736,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -808,7 +769,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -816,7 +777,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -825,7 +786,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -838,12 +799,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -900,38 +861,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) { @@ -998,7 +927,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1104,11 +1033,11 @@ public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.M /** * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1117,18 +1046,6 @@ public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.M } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) } @@ -1143,7 +1060,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDe return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MessageOptionalIgnoreDefault parsePartialFrom( 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 index b8b7ad97..e1f2c6fe 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MessageOptionalIgnoreDefaultOrBuilder extends 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 index fb351358..a5264876 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty} */ public final class Proto2MessageOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MessageOptionalIgnoreEmpty.class.getName()); + } // Use Proto2MessageOptionalIgnoreEmpty.newBuilder() to construct. - private Proto2MessageOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MessageOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MessageOptionalIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEm } public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEm java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEm return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -754,20 +715,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEm } public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -775,20 +736,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEm java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -808,7 +769,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -816,7 +777,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -825,7 +786,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -838,12 +799,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -900,38 +861,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) { @@ -998,7 +927,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1104,11 +1033,11 @@ public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg /** * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1117,18 +1046,6 @@ public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) } @@ -1143,7 +1060,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEm return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MessageOptionalIgnoreEmpty parsePartialFrom( 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 index a8bd8da2..ed88264e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MessageOptionalIgnoreEmptyOrBuilder extends 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 index b14d5b6c..ade420fc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified} */ public final class Proto2MessageOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MessageOptionalIgnoreUnspecified.class.getName()); + } // Use Proto2MessageOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto2MessageOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MessageOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MessageOptionalIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUn } public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUn java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUn return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -754,20 +715,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUn } public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -775,20 +736,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUn java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -808,7 +769,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -816,7 +777,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -825,7 +786,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -838,12 +799,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -900,38 +861,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) { @@ -998,7 +927,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1104,11 +1033,11 @@ public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecifi /** * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1117,18 +1046,6 @@ public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecifi } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) } @@ -1143,7 +1060,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUn return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MessageOptionalIgnoreUnspecified parsePartialFrom( 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 index 20c9f834..4048f8be 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MessageOptionalIgnoreUnspecifiedOrBuilder extends 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 index 04560917..2d12afb8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault} */ public final class Proto2MessageRequiredIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MessageRequiredIgnoreDefault.class.getName()); + } // Use Proto2MessageRequiredIgnoreDefault.newBuilder() to construct. - private Proto2MessageRequiredIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MessageRequiredIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MessageRequiredIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDe } public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageReq result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDe return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -758,20 +719,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDe } public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -779,20 +740,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -812,7 +773,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -820,7 +781,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -829,7 +790,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -842,12 +803,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -904,38 +865,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageReq result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) { @@ -1005,7 +934,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1111,11 +1040,11 @@ public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.M /** * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1124,18 +1053,6 @@ public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.M } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) } @@ -1150,7 +1067,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDe return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MessageRequiredIgnoreDefault parsePartialFrom( 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 index f915eb03..52980485 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MessageRequiredIgnoreDefaultOrBuilder extends 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 index e79c6e78..09c955d8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty} */ public final class Proto2MessageRequiredIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MessageRequiredIgnoreEmpty.class.getName()); + } // Use Proto2MessageRequiredIgnoreEmpty.newBuilder() to construct. - private Proto2MessageRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MessageRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MessageRequiredIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEm } public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEm java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageReq result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEm return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -758,20 +719,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEm } public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -779,20 +740,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEm java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -812,7 +773,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -820,7 +781,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -829,7 +790,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -842,12 +803,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -904,38 +865,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageReq result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) { @@ -1005,7 +934,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1111,11 +1040,11 @@ public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg /** * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1124,18 +1053,6 @@ public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) } @@ -1150,7 +1067,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEm return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MessageRequiredIgnoreEmpty parsePartialFrom( 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 index b0006000..3ded58a5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MessageRequiredIgnoreEmptyOrBuilder extends 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 index 8bc85ac8..ebd30eaa 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified} */ public final class Proto2MessageRequiredIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2MessageRequiredIgnoreUnspecified.class.getName()); + } // Use Proto2MessageRequiredIgnoreUnspecified.newBuilder() to construct. - private Proto2MessageRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2MessageRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2MessageRequiredIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUn } public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUn java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageReq result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUn return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -758,20 +719,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUn } public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -779,20 +740,20 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUn java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -812,7 +773,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -820,7 +781,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -829,7 +790,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -842,12 +803,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -904,38 +865,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageReq result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) { @@ -1005,7 +934,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1111,11 +1040,11 @@ public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecifi /** * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1124,18 +1053,6 @@ public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecifi } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) } @@ -1150,7 +1067,7 @@ public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUn return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2MessageRequiredIgnoreUnspecified parsePartialFrom( 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 index 335f7776..d0b35e07 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2MessageRequiredIgnoreUnspecifiedOrBuilder extends 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 index f5a61d61..2fb4de01 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreDefault} */ public final class Proto2OneofIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2OneofIgnoreDefault.class.getName()); + } // Use Proto2OneofIgnoreDefault.newBuilder() to construct. - private Proto2OneofIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2OneofIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2OneofIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault pars } public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreDefault) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault getD return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2OneofIgnoreDefault parsePartialFrom( 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 index f4679c57..3c575003 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2OneofIgnoreDefaultOrBuilder extends 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 index ca02a2df..cc942cba 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault} */ public final class Proto2OneofIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2OneofIgnoreDefaultWithDefault.class.getName()); + } // Use Proto2OneofIgnoreDefaultWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2OneofIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2OneofIgnoreDefaultWithDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithD } public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithD return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2OneofIgnoreDefaultWithDefault parsePartialFrom( 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 index 5c869fe1..15d0d036 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2OneofIgnoreDefaultWithDefaultOrBuilder extends 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 index eda6a6fc..6e2b5f1a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreEmpty} */ public final class Proto2OneofIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2OneofIgnoreEmpty.class.getName()); + } // Use Proto2OneofIgnoreEmpty.newBuilder() to construct. - private Proto2OneofIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2OneofIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2OneofIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty parseF } public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty getDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2OneofIgnoreEmpty parsePartialFrom( 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 index 645a73bd..81dbd89b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2OneofIgnoreEmptyOrBuilder extends 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 index 922ff8ea..19fc25dd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault} */ public final class Proto2OneofIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2OneofIgnoreEmptyWithDefault.class.getName()); + } // Use Proto2OneofIgnoreEmptyWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2OneofIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2OneofIgnoreEmptyWithDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDef } public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDef java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2OneofIgnoreEmptyWithDefault parsePartialFrom( 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 index c556545d..fa28b1ce 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2OneofIgnoreEmptyWithDefaultOrBuilder extends 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 index 446480cb..ffc6c147 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified} */ public final class Proto2OneofIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2OneofIgnoreUnspecified.class.getName()); + } // Use Proto2OneofIgnoreUnspecified.newBuilder() to construct. - private Proto2OneofIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2OneofIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2OneofIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified } public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2OneofIgnoreUnspecified parsePartialFrom( 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 index bf1934df..fab51851 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2OneofIgnoreUnspecifiedOrBuilder extends 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 index 5a535cf6..73a2b8a9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault} */ public final class Proto2OneofIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2OneofIgnoreUnspecifiedWithDefault.class.getName()); + } // Use Proto2OneofIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2OneofIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2OneofIgnoreUnspecifiedWithDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedW } public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedW java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) } @@ -532,7 +491,7 @@ public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedW return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2OneofIgnoreUnspecifiedWithDefault parsePartialFrom( 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 index b52e8351..eeaa693d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder extends 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 index 09495fcb..56d7ca45 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault} */ public final class Proto2RepeatedIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2RepeatedIgnoreDefault.class.getName()); + } // Use Proto2RepeatedIgnoreDefault.newBuilder() to construct. - private Proto2RepeatedIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2RepeatedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2RepeatedIgnoreDefault() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2RepeatedIgnoreDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault p } public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault p java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault g return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2RepeatedIgnoreDefault parsePartialFrom( 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 index ebdbabf5..a3cdca04 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2RepeatedIgnoreDefaultOrBuilder extends 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 index 28bcb833..48498c66 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmpty.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty} */ public final class Proto2RepeatedIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2RepeatedIgnoreEmpty.class.getName()); + } // Use Proto2RepeatedIgnoreEmpty.newBuilder() to construct. - private Proto2RepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2RepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2RepeatedIgnoreEmpty() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2RepeatedIgnoreEmpty(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty par } public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty get return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2RepeatedIgnoreEmpty parsePartialFrom( 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 index 1b01c4da..0c03c644 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2RepeatedIgnoreEmptyOrBuilder extends 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 index bc594862..ddb30850 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecified.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified} */ public final class Proto2RepeatedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2RepeatedIgnoreUnspecified.class.getName()); + } // Use Proto2RepeatedIgnoreUnspecified.newBuilder() to construct. - private Proto2RepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2RepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2RepeatedIgnoreUnspecified() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2RepeatedIgnoreUnspecified(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecifi } public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecifi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecifi return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2RepeatedIgnoreUnspecified parsePartialFrom( 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 index c2428a6e..a4af854d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2RepeatedIgnoreUnspecifiedOrBuilder extends 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 index a196a012..15d193b1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault} */ public final class Proto2RepeatedItemIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2RepeatedItemIgnoreDefault.class.getName()); + } // Use Proto2RepeatedItemIgnoreDefault.newBuilder() to construct. - private Proto2RepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2RepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2RepeatedItemIgnoreDefault() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2RepeatedItemIgnoreDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefau } public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefau java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefau return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2RepeatedItemIgnoreDefault parsePartialFrom( 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 index bf0b5dd8..f9dbe986 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2RepeatedItemIgnoreDefaultOrBuilder extends 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 index 33c73fc5..163bf198 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmpty.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty} */ public final class Proto2RepeatedItemIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2RepeatedItemIgnoreEmpty.class.getName()); + } // Use Proto2RepeatedItemIgnoreEmpty.newBuilder() to construct. - private Proto2RepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2RepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2RepeatedItemIgnoreEmpty() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2RepeatedItemIgnoreEmpty(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty } public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2RepeatedItemIgnoreEmpty parsePartialFrom( 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 index 0d9633c3..83dc4858 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2RepeatedItemIgnoreEmptyOrBuilder extends 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 index 702c84e1..499990da 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecified.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified} */ public final class Proto2RepeatedItemIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2RepeatedItemIgnoreUnspecified.class.getName()); + } // Use Proto2RepeatedItemIgnoreUnspecified.newBuilder() to construct. - private Proto2RepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2RepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2RepeatedItemIgnoreUnspecified() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2RepeatedItemIgnoreUnspecified(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -175,20 +178,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspe } public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -196,20 +199,20 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -229,7 +232,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -237,7 +240,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -246,7 +249,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -259,7 +262,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -307,38 +310,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) { @@ -504,18 +475,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) } @@ -530,7 +489,7 @@ public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspe return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2RepeatedItemIgnoreUnspecified parsePartialFrom( 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 index e8c668cf..9e9754d8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2RepeatedItemIgnoreUnspecifiedOrBuilder extends 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 index 89f3b8fb..687ef94b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault} */ public final class Proto2ScalarOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarOptionalIgnoreDefault.class.getName()); + } // Use Proto2ScalarOptionalIgnoreDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarOptionalIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDef } public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDef java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) } @@ -457,7 +416,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarOptionalIgnoreDefault parsePartialFrom( 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 index f66b6db7..44209fea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarOptionalIgnoreDefaultOrBuilder extends 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 index caaadb45..ea29b8d5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault} */ public final class Proto2ScalarOptionalIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarOptionalIgnoreDefaultWithDefault.class.getName()); + } // Use Proto2ScalarOptionalIgnoreDefaultWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarOptionalIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarOptionalIgnoreDefaultWithDefault() { val_ = -42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2ScalarOptionalIgnoreDefaultWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -164,20 +167,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDef } public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -185,20 +188,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDef java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -218,7 +221,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -226,7 +229,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -235,7 +238,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -248,7 +251,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -298,38 +301,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) { @@ -432,18 +403,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) } @@ -458,7 +417,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarOptionalIgnoreDefaultWithDefault parsePartialFrom( 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 index ce69e522..ed0a8c93 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder extends 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 index c7d7bcc0..58881e69 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty} */ public final class Proto2ScalarOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarOptionalIgnoreEmpty.class.getName()); + } // Use Proto2ScalarOptionalIgnoreEmpty.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarOptionalIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmp } public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) } @@ -457,7 +416,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmp return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarOptionalIgnoreEmpty parsePartialFrom( 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 index 53bd223f..2c1d2dfd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarOptionalIgnoreEmptyOrBuilder extends 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 index 369acfca..456531b0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault} */ public final class Proto2ScalarOptionalIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarOptionalIgnoreEmptyWithDefault.class.getName()); + } // Use Proto2ScalarOptionalIgnoreEmptyWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarOptionalIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarOptionalIgnoreEmptyWithDefault() { val_ = -42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2ScalarOptionalIgnoreEmptyWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -164,20 +167,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmp } public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -185,20 +188,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -218,7 +221,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -226,7 +229,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -235,7 +238,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -248,7 +251,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -298,38 +301,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) { @@ -432,18 +403,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) } @@ -458,7 +417,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmp return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarOptionalIgnoreEmptyWithDefault parsePartialFrom( 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 index a53ca8e7..8d72fb6d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder extends 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 index 5b8b52c3..8552d774 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified} */ public final class Proto2ScalarOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarOptionalIgnoreUnspecified.class.getName()); + } // Use Proto2ScalarOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarOptionalIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUns } public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUns java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) } @@ -457,7 +416,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUns return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarOptionalIgnoreUnspecified parsePartialFrom( 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 index ae3755e9..41cccd7b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder extends 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 index 0d59300b..af58d25b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault} */ public final class Proto2ScalarOptionalIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.class.getName()); + } // Use Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarOptionalIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarOptionalIgnoreUnspecifiedWithDefault() { val_ = -42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2ScalarOptionalIgnoreUnspecifiedWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -164,20 +167,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUns } public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -185,20 +188,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUns java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -218,7 +221,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -226,7 +229,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -235,7 +238,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -248,7 +251,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -298,38 +301,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) { @@ -432,18 +403,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) } @@ -458,7 +417,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUns return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parsePartialFrom( 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 index 137cfdd3..66e3b9ae 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder extends 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 index 8a100009..509b6959 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault} */ public final class Proto2ScalarRequiredIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarRequiredIgnoreDefault.class.getName()); + } // Use Proto2ScalarRequiredIgnoreDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarRequiredIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarRequiredIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -167,20 +170,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDef } public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -188,20 +191,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDef java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -221,7 +224,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -229,7 +232,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -238,7 +241,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -251,7 +254,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -301,38 +304,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequ result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) { @@ -438,18 +409,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) } @@ -464,7 +423,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarRequiredIgnoreDefault parsePartialFrom( 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 index e3611ea8..6594d29c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarRequiredIgnoreDefaultOrBuilder extends 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 index fb6d9876..e28be603 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault} */ public final class Proto2ScalarRequiredIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarRequiredIgnoreDefaultWithDefault.class.getName()); + } // Use Proto2ScalarRequiredIgnoreDefaultWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarRequiredIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarRequiredIgnoreDefaultWithDefault() { val_ = -42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2ScalarRequiredIgnoreDefaultWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -168,20 +171,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDef } public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -189,20 +192,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDef java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -222,7 +225,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -230,7 +233,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -239,7 +242,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -252,7 +255,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -302,38 +305,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequ result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) { @@ -439,18 +410,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) } @@ -465,7 +424,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarRequiredIgnoreDefaultWithDefault parsePartialFrom( 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 index 17ec6839..39522912 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder extends 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 index 91d44269..b121d4df 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty} */ public final class Proto2ScalarRequiredIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarRequiredIgnoreEmpty.class.getName()); + } // Use Proto2ScalarRequiredIgnoreEmpty.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarRequiredIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -167,20 +170,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmp } public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -188,20 +191,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -221,7 +224,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -229,7 +232,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -238,7 +241,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -251,7 +254,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -301,38 +304,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequ result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) { @@ -438,18 +409,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) } @@ -464,7 +423,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmp return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarRequiredIgnoreEmpty parsePartialFrom( 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 index 1736d572..3f933a81 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarRequiredIgnoreEmptyOrBuilder extends 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 index 854411a8..fe051fd1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault} */ public final class Proto2ScalarRequiredIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarRequiredIgnoreEmptyWithDefault.class.getName()); + } // Use Proto2ScalarRequiredIgnoreEmptyWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarRequiredIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarRequiredIgnoreEmptyWithDefault() { val_ = -42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2ScalarRequiredIgnoreEmptyWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -168,20 +171,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmp } public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -189,20 +192,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -222,7 +225,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -230,7 +233,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -239,7 +242,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -252,7 +255,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -302,38 +305,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequ result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) { @@ -439,18 +410,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) } @@ -465,7 +424,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmp return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarRequiredIgnoreEmptyWithDefault parsePartialFrom( 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 index 704e2c35..83615d7d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder extends 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 index 11cd1b7e..074b2164 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified} */ public final class Proto2ScalarRequiredIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarRequiredIgnoreUnspecified.class.getName()); + } // Use Proto2ScalarRequiredIgnoreUnspecified.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarRequiredIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -167,20 +170,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUns } public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -188,20 +191,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUns java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -221,7 +224,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -229,7 +232,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -238,7 +241,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -251,7 +254,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -301,38 +304,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequ result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) { @@ -438,18 +409,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) } @@ -464,7 +423,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUns return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarRequiredIgnoreUnspecified parsePartialFrom( 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 index db8961a6..74022910 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder extends 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 index 5d72018b..cd0f07a1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault} */ public final class Proto2ScalarRequiredIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.class.getName()); + } // Use Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto2ScalarRequiredIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto2ScalarRequiredIgnoreUnspecifiedWithDefault() { val_ = -42; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto2ScalarRequiredIgnoreUnspecifiedWithDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -168,20 +171,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUns } public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -189,20 +192,20 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUns java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -222,7 +225,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -230,7 +233,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -239,7 +242,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -252,7 +255,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -302,38 +305,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequ result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) { @@ -439,18 +410,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) } @@ -465,7 +424,7 @@ public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUns return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parsePartialFrom( 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 index 301ea001..7a7d08e8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder extends 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 index 9a2b6f1f..b8c84905 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefault.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreDefault} */ public final class Proto3MapIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapIgnoreDefault.class.getName()); + } // Use Proto3MapIgnoreDefault.newBuilder() to construct. - private Proto3MapIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault parseF } public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreD } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreDefault) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreDefault) } 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 index 26892052..4aa27570 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapIgnoreDefaultOrBuilder extends 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 index 38d83f7c..ecb5da0b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmpty.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreEmpty} */ public final class Proto3MapIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapIgnoreEmpty.class.getName()); + } // Use Proto3MapIgnoreEmpty.newBuilder() to construct. - private Proto3MapIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty parseFro } public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreE } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreEmpty) } 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 index 6287e63a..8eb8effa 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapIgnoreEmptyOrBuilder extends 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 index 1aa8e834..0df4323f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecified.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreUnspecified} */ public final class Proto3MapIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapIgnoreUnspecified.class.getName()); + } // Use Proto3MapIgnoreUnspecified.newBuilder() to construct. - private Proto3MapIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified pa } public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified pa java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreU } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) } 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 index 359927da..76d3e848 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapIgnoreUnspecifiedOrBuilder extends 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 index 31837e92..1dffa191 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefault.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault} */ public final class Proto3MapKeyIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapKeyIgnoreDefault.class.getName()); + } // Use Proto3MapKeyIgnoreDefault.newBuilder() to construct. - private Proto3MapKeyIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapKeyIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapKeyIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault par } public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) } 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 index 40e18d37..6605b3e7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapKeyIgnoreDefaultOrBuilder extends 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 index 6fc45399..cd8b816c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmpty.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty} */ public final class Proto3MapKeyIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapKeyIgnoreEmpty.class.getName()); + } // Use Proto3MapKeyIgnoreEmpty.newBuilder() to construct. - private Proto3MapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapKeyIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty parse } public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) } 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 index 933767a1..8e1b3d22 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapKeyIgnoreEmptyOrBuilder extends 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 index 37edd6b6..96eac5b7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecified.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified} */ public final class Proto3MapKeyIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapKeyIgnoreUnspecified.class.getName()); + } // Use Proto3MapKeyIgnoreUnspecified.newBuilder() to construct. - private Proto3MapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapKeyIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified } public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) } 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 index 1419d341..02d57a58 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapKeyIgnoreUnspecifiedOrBuilder extends 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 index fc343238..ef561295 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefault.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreDefault} */ public final class Proto3MapValueIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapValueIgnoreDefault.class.getName()); + } // Use Proto3MapValueIgnoreDefault.newBuilder() to construct. - private Proto3MapValueIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapValueIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapValueIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault p } public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault p java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) } 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 index 2f9050e0..6ddf02be 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapValueIgnoreDefaultOrBuilder extends 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 index b78c9622..34d9b297 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmpty.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty} */ public final class Proto3MapValueIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapValueIgnoreEmpty.class.getName()); + } // Use Proto3MapValueIgnoreEmpty.newBuilder() to construct. - private Proto3MapValueIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapValueIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapValueIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty par } public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) } 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 index 7e75c721..5a62c76c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapValueIgnoreEmptyOrBuilder extends 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 index 8589a70f..90f6e693 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecified.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified} */ public final class Proto3MapValueIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MapValueIgnoreUnspecified.class.getName()); + } // Use Proto3MapValueIgnoreUnspecified.newBuilder() to construct. - private Proto3MapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MapValueIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -142,7 +145,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeIntegerMapTo( output, internalGetVal(), @@ -238,20 +241,20 @@ public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecifi } public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -259,20 +262,20 @@ public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecifi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -292,7 +295,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -300,7 +303,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -331,7 +334,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -344,7 +347,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -392,38 +395,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) { @@ -615,18 +586,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) } 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 index 7bbfef8b..caedd327 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MapValueIgnoreUnspecifiedOrBuilder extends 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 index e1db38cb..2d5ea341 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreDefault} */ public final class Proto3MessageIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MessageIgnoreDefault.class.getName()); + } // Use Proto3MessageIgnoreDefault.newBuilder() to construct. - private Proto3MessageIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MessageIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MessageIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -159,7 +164,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -171,7 +176,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +252,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Ms } public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -268,20 +273,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Ms java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -301,7 +306,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -309,7 +314,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -318,7 +323,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -331,7 +336,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -381,38 +386,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgn result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) { @@ -556,18 +529,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) } @@ -751,20 +712,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault pa } public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -772,20 +733,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault pa java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -805,7 +766,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -813,7 +774,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -822,7 +783,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -835,12 +796,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -897,38 +858,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgn result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault) { @@ -995,7 +924,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1101,11 +1030,11 @@ public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuil /** * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1114,18 +1043,6 @@ public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuil } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreDefault) } 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 index c8d8e8f4..e667254f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MessageIgnoreDefaultOrBuilder extends 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 index 50539fe8..9682f3e0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreEmpty} */ public final class Proto3MessageIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MessageIgnoreEmpty.class.getName()); + } // Use Proto3MessageIgnoreEmpty.newBuilder() to construct. - private Proto3MessageIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MessageIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MessageIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -159,7 +164,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -171,7 +176,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +252,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg } public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -268,20 +273,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -301,7 +306,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -309,7 +314,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -318,7 +323,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -331,7 +336,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -381,38 +386,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgn result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) { @@ -556,18 +529,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) } @@ -751,20 +712,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty pars } public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -772,20 +733,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -805,7 +766,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -813,7 +774,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -822,7 +783,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -835,12 +796,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -897,38 +858,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgn result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) { @@ -995,7 +924,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1101,11 +1030,11 @@ public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilde /** * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1114,18 +1043,6 @@ public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilde } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) } 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 index bc07a3fe..b8e64042 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MessageIgnoreEmptyOrBuilder extends 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 index 4662be4b..5bb0d252 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified} */ public final class Proto3MessageIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MessageIgnoreUnspecified.class.getName()); + } // Use Proto3MessageIgnoreUnspecified.newBuilder() to construct. - private Proto3MessageIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MessageIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MessageIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -159,7 +164,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -171,7 +176,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +252,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecifie } public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -268,20 +273,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecifie java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -301,7 +306,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -309,7 +314,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -318,7 +323,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -331,7 +336,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -381,38 +386,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgn result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) { @@ -556,18 +529,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) } @@ -751,20 +712,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecifie } public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -772,20 +733,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecifie java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -805,7 +766,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -813,7 +774,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -822,7 +783,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -835,12 +796,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -897,38 +858,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgn result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) { @@ -995,7 +924,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1101,11 +1030,11 @@ public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOr /** * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1114,18 +1043,6 @@ public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOr } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) } 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 index 2fbf1862..53c522f5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MessageIgnoreUnspecifiedOrBuilder extends 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 index 99617457..8b747d9a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault} */ public final class Proto3MessageOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MessageOptionalIgnoreDefault.class.getName()); + } // Use Proto3MessageOptionalIgnoreDefault.newBuilder() to construct. - private Proto3MessageOptionalIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MessageOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MessageOptionalIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -159,7 +164,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -171,7 +176,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +252,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDe } public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -268,20 +273,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -301,7 +306,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -309,7 +314,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -318,7 +323,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -331,7 +336,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -381,38 +386,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) { @@ -556,18 +529,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) } @@ -751,20 +712,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDe } public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -772,20 +733,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -805,7 +766,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -813,7 +774,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -822,7 +783,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -835,12 +796,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -897,38 +858,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) { @@ -995,7 +924,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1101,11 +1030,11 @@ public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.M /** * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1114,18 +1043,6 @@ public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.M } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) } 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 index 3abbee4e..e2c9ec99 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MessageOptionalIgnoreDefaultOrBuilder extends 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 index 46496c5e..a7f333b0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty} */ public final class Proto3MessageOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MessageOptionalIgnoreEmpty.class.getName()); + } // Use Proto3MessageOptionalIgnoreEmpty.newBuilder() to construct. - private Proto3MessageOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MessageOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MessageOptionalIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -159,7 +164,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -171,7 +176,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +252,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEm } public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -268,20 +273,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEm java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -301,7 +306,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -309,7 +314,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -318,7 +323,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -331,7 +336,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -381,38 +386,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) { @@ -556,18 +529,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) } @@ -751,20 +712,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEm } public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -772,20 +733,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEm java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -805,7 +766,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -813,7 +774,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -822,7 +783,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -835,12 +796,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -897,38 +858,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) { @@ -995,7 +924,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1101,11 +1030,11 @@ public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg /** * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1114,18 +1043,6 @@ public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) } 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 index ad7d5b68..56c2575a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MessageOptionalIgnoreEmptyOrBuilder extends 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 index 13e8b731..84a3d112 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified} */ public final class Proto3MessageOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3MessageOptionalIgnoreUnspecified.class.getName()); + } // Use Proto3MessageOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto3MessageOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3MessageOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3MessageOptionalIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -159,7 +164,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -171,7 +176,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,20 +252,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUn } public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -268,20 +273,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUn java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -301,7 +306,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -309,7 +314,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -318,7 +323,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -331,7 +336,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -381,38 +386,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) { @@ -556,18 +529,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) } @@ -751,20 +712,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUn } public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -772,20 +733,20 @@ public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUn java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -805,7 +766,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -813,7 +774,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -822,7 +783,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -835,12 +796,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -897,38 +858,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOpt result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) { @@ -995,7 +924,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1101,11 +1030,11 @@ public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecifi /** * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1114,18 +1043,6 @@ public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecifi } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) } 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 index b8e1def0..50f4c037 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3MessageOptionalIgnoreUnspecifiedOrBuilder extends 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 index 64fa8083..9d6d2166 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreDefault} */ public final class Proto3OneofIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3OneofIgnoreDefault.class.getName()); + } // Use Proto3OneofIgnoreDefault.newBuilder() to construct. - private Proto3OneofIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3OneofIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3OneofIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault pars } public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreDefault) } 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 index 31b9b344..7506c69c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3OneofIgnoreDefaultOrBuilder extends 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 index b885e43b..be4ef86e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreEmpty} */ public final class Proto3OneofIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3OneofIgnoreEmpty.class.getName()); + } // Use Proto3OneofIgnoreEmpty.newBuilder() to construct. - private Proto3OneofIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3OneofIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3OneofIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty parseF } public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) } 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 index 79c64ef3..03439fd3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3OneofIgnoreEmptyOrBuilder extends 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 index 8697d9d5..ba36c4af 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified} */ public final class Proto3OneofIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3OneofIgnoreUnspecified.class.getName()); + } // Use Proto3OneofIgnoreUnspecified.newBuilder() to construct. - private Proto3OneofIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3OneofIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3OneofIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified } public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -235,20 +238,20 @@ public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -268,7 +271,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3Oneof result.o_ = this.o_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) { @@ -506,18 +477,6 @@ public Builder clearVal() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) } 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 index 20121d47..c13d06d7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3OneofIgnoreUnspecifiedOrBuilder extends 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 index e9da778c..a11387de 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault} */ public final class Proto3RepeatedIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3RepeatedIgnoreDefault.class.getName()); + } // Use Proto3RepeatedIgnoreDefault.newBuilder() to construct. - private Proto3RepeatedIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3RepeatedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3RepeatedIgnoreDefault() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto3RepeatedIgnoreDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault p } public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault p java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) } 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 index 9a936606..cfcb2219 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3RepeatedIgnoreDefaultOrBuilder extends 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 index cacb086b..7dcf588f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmpty.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty} */ public final class Proto3RepeatedIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3RepeatedIgnoreEmpty.class.getName()); + } // Use Proto3RepeatedIgnoreEmpty.newBuilder() to construct. - private Proto3RepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3RepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3RepeatedIgnoreEmpty() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto3RepeatedIgnoreEmpty(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty par } public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) } 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 index 74f41f60..a82ca70a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3RepeatedIgnoreEmptyOrBuilder extends 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 index 476dc908..dda0642a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecified.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified} */ public final class Proto3RepeatedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3RepeatedIgnoreUnspecified.class.getName()); + } // Use Proto3RepeatedIgnoreUnspecified.newBuilder() to construct. - private Proto3RepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3RepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3RepeatedIgnoreUnspecified() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto3RepeatedIgnoreUnspecified(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecifi } public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecifi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIg } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) } 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 index f9246d38..2fbe230f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3RepeatedIgnoreUnspecifiedOrBuilder extends 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 index c2dd7391..2980b4e9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault} */ public final class Proto3RepeatedItemIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3RepeatedItemIgnoreDefault.class.getName()); + } // Use Proto3RepeatedItemIgnoreDefault.newBuilder() to construct. - private Proto3RepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3RepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3RepeatedItemIgnoreDefault() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto3RepeatedItemIgnoreDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefau } public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefau java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) } 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 index c57b30dc..aed38c1c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3RepeatedItemIgnoreDefaultOrBuilder extends 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 index 40737876..51e41908 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmpty.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty} */ public final class Proto3RepeatedItemIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3RepeatedItemIgnoreEmpty.class.getName()); + } // Use Proto3RepeatedItemIgnoreEmpty.newBuilder() to construct. - private Proto3RepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3RepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3RepeatedItemIgnoreEmpty() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto3RepeatedItemIgnoreEmpty(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty } public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) } 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 index 96c1f409..047d35ff 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3RepeatedItemIgnoreEmptyOrBuilder extends 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 index 3c4cb445..18c1ac82 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecified.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified} */ public final class Proto3RepeatedItemIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3RepeatedItemIgnoreUnspecified.class.getName()); + } // Use Proto3RepeatedItemIgnoreUnspecified.newBuilder() to construct. - private Proto3RepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3RepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3RepeatedItemIgnoreUnspecified() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Proto3RepeatedItemIgnoreUnspecified(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspe } public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) } 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 index a651155a..182a7a9a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3RepeatedItemIgnoreUnspecifiedOrBuilder extends 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 index 49e31a36..3a75d247 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreDefault} */ public final class Proto3ScalarIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3ScalarIgnoreDefault.class.getName()); + } // Use Proto3ScalarIgnoreDefault.newBuilder() to construct. - private Proto3ScalarIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3ScalarIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3ScalarIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault par } public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) } 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 index 87073118..787ec8bd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3ScalarIgnoreDefaultOrBuilder extends 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 index ff8d5dd1..09ed5ab7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty} */ public final class Proto3ScalarIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3ScalarIgnoreEmpty.class.getName()); + } // Use Proto3ScalarIgnoreEmpty.newBuilder() to construct. - private Proto3ScalarIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3ScalarIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3ScalarIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty parse } public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) } 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 index 9292dd7d..7da0e8d4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3ScalarIgnoreEmptyOrBuilder extends 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 index 39f9e02a..68c97275 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified} */ public final class Proto3ScalarIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3ScalarIgnoreUnspecified.class.getName()); + } // Use Proto3ScalarIgnoreUnspecified.newBuilder() to construct. - private Proto3ScalarIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3ScalarIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3ScalarIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified } public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgno } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) } 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 index 9ac5d621..c785002a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3ScalarIgnoreUnspecifiedOrBuilder extends 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 index 8d27ed5a..6dd89a45 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefault.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault} */ public final class Proto3ScalarOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3ScalarOptionalIgnoreDefault.class.getName()); + } // Use Proto3ScalarOptionalIgnoreDefault.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3ScalarOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3ScalarOptionalIgnoreDefault() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDef } public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDef java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) } 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 index 4cd06283..1404aefb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3ScalarOptionalIgnoreDefaultOrBuilder extends 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 index 0cd6fdd5..781c1b23 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmpty.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmpty.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty} */ public final class Proto3ScalarOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3ScalarOptionalIgnoreEmpty.class.getName()); + } // Use Proto3ScalarOptionalIgnoreEmpty.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3ScalarOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3ScalarOptionalIgnoreEmpty() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmp } public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) } 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 index 8b96d4e5..76128d1f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmptyOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmptyOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3ScalarOptionalIgnoreEmptyOrBuilder extends 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 index 8b9ceed5..3538cf54 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecified.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecified.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified} */ public final class Proto3ScalarOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Proto3ScalarOptionalIgnoreUnspecified.class.getName()); + } // Use Proto3ScalarOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Proto3ScalarOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Proto3ScalarOptionalIgnoreUnspecified() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -163,20 +166,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUns } public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -184,20 +187,20 @@ public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUns java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -217,7 +220,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -225,7 +228,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -234,7 +237,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -247,7 +250,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -297,38 +300,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOpti result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) { @@ -431,18 +402,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) } 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 index b7d7e00d..7ac3fce7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder extends 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 index a65be0b6..1f3f5907 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedAnyIn} */ public final class RepeatedAnyIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedAnyIn.class.getName()); + } // Use RepeatedAnyIn.newBuilder() to construct. - private RepeatedAnyIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedAnyIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedAnyIn() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedAnyIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedAnyIn parseFrom( } public static build.buf.validate.conformance.cases.RepeatedAnyIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedAnyIn parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedAnyIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedAnyIn re int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedAnyIn) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedAnyIn othe val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; /** @@ -680,11 +651,11 @@ public com.google.protobuf.Any.Builder addValBuilder( getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( val_, ((bitField0_ & 0x00000001) != 0), @@ -694,18 +665,6 @@ public com.google.protobuf.Any.Builder addValBuilder( } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedAnyIn) } 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 index a0d27942..5d7409c6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedAnyInOrBuilder extends 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 index 8b113093..47539b58 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedAnyNotIn} */ public final class RepeatedAnyNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedAnyNotIn.class.getName()); + } // Use RepeatedAnyNotIn.newBuilder() to construct. - private RepeatedAnyNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedAnyNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedAnyNotIn() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedAnyNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedAnyNotIn parseFrom( } public static build.buf.validate.conformance.cases.RepeatedAnyNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedAnyNotIn parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedAnyNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedAnyNotIn int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedAnyNotIn) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedAnyNotIn o val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; /** @@ -680,11 +651,11 @@ public com.google.protobuf.Any.Builder addValBuilder( getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( val_, ((bitField0_ & 0x00000001) != 0), @@ -694,18 +665,6 @@ public com.google.protobuf.Any.Builder addValBuilder( } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedAnyNotIn) } 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 index f71f8b79..aad4d891 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedAnyNotInOrBuilder extends 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 index 05a744bc..d575fd4e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDuration.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDuration.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedDuration} */ public final class RepeatedDuration extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedDuration.class.getName()); + } // Use RepeatedDuration.newBuilder() to construct. - private RepeatedDuration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedDuration(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedDuration() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedDuration(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedDuration parseFrom( } public static build.buf.validate.conformance.cases.RepeatedDuration parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedDuration parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedDuration} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedDuration int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedDuration) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedDuration o val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; /** @@ -680,11 +651,11 @@ public com.google.protobuf.Duration.Builder addValBuilder( getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( val_, ((bitField0_ & 0x00000001) != 0), @@ -694,18 +665,6 @@ public com.google.protobuf.Duration.Builder addValBuilder( } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedDuration) } 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 index aecc0cb9..030cc52c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDurationOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDurationOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedDurationOrBuilder extends 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 index 0a08bca8..17288343 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNone.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone} */ public final class RepeatedEmbedCrossPackageNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEmbedCrossPackageNone.class.getName()); + } // Use RepeatedEmbedCrossPackageNone.newBuilder() to construct. - private RepeatedEmbedCrossPackageNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEmbedCrossPackageNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEmbedCrossPackageNone() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEmbedCrossPackageNone(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone } public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbedCro int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbedCross val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + 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_; /** @@ -680,11 +651,11 @@ public build.buf.validate.conformance.cases.other_package.Embed.Builder addValBu getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + 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), @@ -694,18 +665,6 @@ public build.buf.validate.conformance.cases.other_package.Embed.Builder addValBu } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) } 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 index abd15c18..4dd89d35 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEmbedCrossPackageNoneOrBuilder extends 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 index d4eef727..8a6cceb2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNone.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedNone} */ public final class RepeatedEmbedNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEmbedNone.class.getName()); + } // Use RepeatedEmbedNone.newBuilder() to construct. - private RepeatedEmbedNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEmbedNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEmbedNone() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEmbedNone(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbedNone parseFrom( } public static build.buf.validate.conformance.cases.RepeatedEmbedNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbedNone parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbedNon int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbedNone) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbedNone val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + 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_; /** @@ -680,11 +651,11 @@ public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + 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), @@ -694,18 +665,6 @@ public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbedNone) } 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 index bfb42231..d3bd5db8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEmbedNoneOrBuilder extends 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 index 3b010550..145dc0db 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkip.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkip.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedSkip} */ public final class RepeatedEmbedSkip extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEmbedSkip.class.getName()); + } // Use RepeatedEmbedSkip.newBuilder() to construct. - private RepeatedEmbedSkip(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEmbedSkip(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEmbedSkip() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEmbedSkip(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbedSkip parseFrom( } public static build.buf.validate.conformance.cases.RepeatedEmbedSkip parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbedSkip parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedSkip} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbedSki int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbedSkip) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbedSkip val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + 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_; /** @@ -680,11 +651,11 @@ public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + 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), @@ -694,18 +665,6 @@ public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbedSkip) } 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 index b77d6b70..2506ca3d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkipOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkipOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEmbedSkipOrBuilder extends 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 index 088684aa..5070a4bf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumIn} */ public final class RepeatedEmbeddedEnumIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEmbeddedEnumIn.class.getName()); + } // Use RepeatedEmbeddedEnumIn.newBuilder() to construct. - private RepeatedEmbeddedEnumIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEmbeddedEnumIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEmbeddedEnumIn() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEmbeddedEnumIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -60,6 +63,15 @@ public enum AnotherInEnum UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnotherInEnum.class.getName()); + } /** * ANOTHER_IN_ENUM_UNSPECIFIED = 0; */ @@ -328,20 +340,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn parseF } public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -349,20 +361,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -382,7 +394,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -390,7 +402,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -399,7 +411,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -412,7 +424,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -466,38 +478,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbedded int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) { @@ -719,18 +699,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) } 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 index 0aeb7f29..eb6241fc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEmbeddedEnumInOrBuilder extends 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 index 89b2108d..f5e7b160 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn} */ public final class RepeatedEmbeddedEnumNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEmbeddedEnumNotIn.class.getName()); + } // Use RepeatedEmbeddedEnumNotIn.newBuilder() to construct. - private RepeatedEmbeddedEnumNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEmbeddedEnumNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEmbeddedEnumNotIn() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEmbeddedEnumNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -60,6 +63,15 @@ public enum AnotherNotInEnum UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + AnotherNotInEnum.class.getName()); + } /** * ANOTHER_NOT_IN_ENUM_UNSPECIFIED = 0; */ @@ -328,20 +340,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn par } public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -349,20 +361,20 @@ public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -382,7 +394,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -390,7 +402,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -399,7 +411,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -412,7 +424,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -466,38 +478,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbedded int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) { @@ -719,18 +699,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) } 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 index 8ce35032..d4e6f8c2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEmbeddedEnumNotInOrBuilder extends 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 index 6d6a8a82..32420da2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefined.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumDefined} */ public final class RepeatedEnumDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEnumDefined.class.getName()); + } // Use RepeatedEnumDefined.newBuilder() to construct. - private RepeatedEnumDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEnumDefined() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEnumDefined(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -211,20 +214,20 @@ public static build.buf.validate.conformance.cases.RepeatedEnumDefined parseFrom } public static build.buf.validate.conformance.cases.RepeatedEnumDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -232,20 +235,20 @@ public static build.buf.validate.conformance.cases.RepeatedEnumDefined parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -265,7 +268,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -273,7 +276,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -282,7 +285,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -295,7 +298,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEnumDefi int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEnumDefined) { @@ -602,18 +573,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEnumDefined) } 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 index f83d0c86..9ae7bad7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEnumDefinedOrBuilder extends 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 index 27c8fd30..ded06804 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumIn} */ public final class RepeatedEnumIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEnumIn.class.getName()); + } // Use RepeatedEnumIn.newBuilder() to construct. - private RepeatedEnumIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEnumIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEnumIn() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEnumIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -211,20 +214,20 @@ public static build.buf.validate.conformance.cases.RepeatedEnumIn parseFrom( } public static build.buf.validate.conformance.cases.RepeatedEnumIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -232,20 +235,20 @@ public static build.buf.validate.conformance.cases.RepeatedEnumIn parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -265,7 +268,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -273,7 +276,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -282,7 +285,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -295,7 +298,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEnumIn r int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEnumIn) { @@ -602,18 +573,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEnumIn) } 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 index 0cafc94e..b40ff9b0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEnumInOrBuilder extends 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 index efa28d71..25201b92 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumNotIn} */ public final class RepeatedEnumNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedEnumNotIn.class.getName()); + } // Use RepeatedEnumNotIn.newBuilder() to construct. - private RepeatedEnumNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedEnumNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedEnumNotIn() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedEnumNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -211,20 +214,20 @@ public static build.buf.validate.conformance.cases.RepeatedEnumNotIn parseFrom( } public static build.buf.validate.conformance.cases.RepeatedEnumNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -232,20 +235,20 @@ public static build.buf.validate.conformance.cases.RepeatedEnumNotIn parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -265,7 +268,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -273,7 +276,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -282,7 +285,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -295,7 +298,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEnumNotI int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedEnumNotIn) { @@ -602,18 +573,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEnumNotIn) } 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 index 5e3d1519..d31bbc4a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedEnumNotInOrBuilder extends 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 index 7d93f6a7..5ca66afe 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExact.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExact.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedExact} */ public final class RepeatedExact extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedExact.class.getName()); + } // Use RepeatedExact.newBuilder() to construct. - private RepeatedExact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedExact(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedExact() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedExact(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.RepeatedExact parseFrom( } public static build.buf.validate.conformance.cases.RepeatedExact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.RepeatedExact parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedExact} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedExact re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedExact) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedExact) } 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 index 842d3bd9..66bd648b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnore.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedExactIgnore} */ public final class RepeatedExactIgnore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedExactIgnore.class.getName()); + } // Use RepeatedExactIgnore.newBuilder() to construct. - private RepeatedExactIgnore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedExactIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedExactIgnore() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedExactIgnore(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.RepeatedExactIgnore parseFrom } public static build.buf.validate.conformance.cases.RepeatedExactIgnore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.RepeatedExactIgnore parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedExactIgnore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedExactIgn } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedExactIgnore) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedExactIgnore) } 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 index cb746f94..21d8dd4c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnoreOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedExactIgnoreOrBuilder extends 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 index fdecf45c..9e1951f4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedExactOrBuilder extends 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 index eda51b78..e87e0bdc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefined.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedExternalEnumDefined} */ public final class RepeatedExternalEnumDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedExternalEnumDefined.class.getName()); + } // Use RepeatedExternalEnumDefined.newBuilder() to construct. - private RepeatedExternalEnumDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedExternalEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedExternalEnumDefined() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedExternalEnumDefined(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -211,20 +214,20 @@ public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined p } public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -232,20 +235,20 @@ public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined p java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -265,7 +268,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -273,7 +276,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedExternalEnumDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -282,7 +285,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -295,7 +298,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedExternal int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedExternalEnumDefined) { @@ -602,18 +573,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedExternalEnumDefined) } 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 index bacade40..5bb66821 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedExternalEnumDefinedOrBuilder extends 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 index 6e774afd..ab21c164 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemIn.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemIn} */ public final class RepeatedItemIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedItemIn.class.getName()); + } // Use RepeatedItemIn.newBuilder() to construct. - private RepeatedItemIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedItemIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedItemIn() { @@ -21,20 +31,13 @@ private RepeatedItemIn() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedItemIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemIn parseFrom( } public static build.buf.validate.conformance.cases.RepeatedItemIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemIn parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemIn r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedItemIn) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemIn) } 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 index dcb566d9..2349e354 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedItemInOrBuilder extends 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 index f49ac25d..ee736b3d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotIn.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemNotIn} */ public final class RepeatedItemNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedItemNotIn.class.getName()); + } // Use RepeatedItemNotIn.newBuilder() to construct. - private RepeatedItemNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedItemNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedItemNotIn() { @@ -21,20 +31,13 @@ private RepeatedItemNotIn() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedItemNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemNotIn parseFrom( } public static build.buf.validate.conformance.cases.RepeatedItemNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemNotIn parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemNotI } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedItemNotIn) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemNotIn) } 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 index bcc6cba8..df054740 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedItemNotInOrBuilder extends 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 index e2a61e12..3f3a0968 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPattern.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPattern.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemPattern} */ public final class RepeatedItemPattern extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedItemPattern.class.getName()); + } // Use RepeatedItemPattern.newBuilder() to construct. - private RepeatedItemPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedItemPattern(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedItemPattern() { @@ -21,20 +31,13 @@ private RepeatedItemPattern() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedItemPattern(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemPattern parseFrom } public static build.buf.validate.conformance.cases.RepeatedItemPattern parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemPattern parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemPattern} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemPatt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedItemPattern) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemPattern) } 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 index 226b22b7..e47305d0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPatternOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPatternOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedItemPatternOrBuilder extends 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 index 9e85ecd0..5fd36f26 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRule.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRule.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemRule} */ public final class RepeatedItemRule extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedItemRule.class.getName()); + } // Use RepeatedItemRule.newBuilder() to construct. - private RepeatedItemRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedItemRule(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedItemRule() { val_ = emptyFloatList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedItemRule(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemRule parseFrom( } public static build.buf.validate.conformance.cases.RepeatedItemRule parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedItemRule parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemRule} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -315,38 +318,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemRule } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedItemRule) { @@ -519,18 +490,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemRule) } 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 index 5a9049ae..aba335b6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRuleOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRuleOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedItemRuleOrBuilder extends 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 index 3b6a66a6..0c013529 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMax.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMax.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedMax} */ public final class RepeatedMax extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedMax.class.getName()); + } // Use RepeatedMax.newBuilder() to construct. - private RepeatedMax(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedMax(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedMax() { val_ = emptyDoubleList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedMax(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedMax parseFrom( } public static build.buf.validate.conformance.cases.RepeatedMax parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedMax parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedMax} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -315,38 +318,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMax resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedMax) { @@ -519,18 +490,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMax) } 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 index c28ecfe0..c549dfec 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMaxOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMaxOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedMaxOrBuilder extends 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 index 9dde6207..b94bbbe1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMin.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMin.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedMin} */ public final class RepeatedMin extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedMin.class.getName()); + } // Use RepeatedMin.newBuilder() to construct. - private RepeatedMin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedMin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedMin() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedMin(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -182,20 +185,20 @@ public static build.buf.validate.conformance.cases.RepeatedMin parseFrom( } public static build.buf.validate.conformance.cases.RepeatedMin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -203,20 +206,20 @@ public static build.buf.validate.conformance.cases.RepeatedMin parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -236,7 +239,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -244,7 +247,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedMin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -253,7 +256,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -266,7 +269,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -329,38 +332,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMin resu int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedMin) { @@ -392,7 +363,7 @@ public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMin other) val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000001); valBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValFieldBuilder() : null; } else { valBuilder_.addAllMessages(other.val_); @@ -464,7 +435,7 @@ private void ensureValIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + 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_; /** @@ -680,11 +651,11 @@ public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( getValBuilderList() { return getValFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + 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), @@ -694,18 +665,6 @@ public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMin) } 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 index 2a0ac426..7df34717 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLen.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinAndItemLen} */ public final class RepeatedMinAndItemLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedMinAndItemLen.class.getName()); + } // Use RepeatedMinAndItemLen.newBuilder() to construct. - private RepeatedMinAndItemLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedMinAndItemLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedMinAndItemLen() { @@ -21,20 +31,13 @@ private RepeatedMinAndItemLen() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedMinAndItemLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen parseFr } public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinAndItemLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMinAndIt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedMinAndItemLen) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMinAndItemLen) } 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 index 46231d8b..61390a9c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedMinAndItemLenOrBuilder extends 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 index b17e3ccb..94df786d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLen.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinAndMaxItemLen} */ public final class RepeatedMinAndMaxItemLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedMinAndMaxItemLen.class.getName()); + } // Use RepeatedMinAndMaxItemLen.newBuilder() to construct. - private RepeatedMinAndMaxItemLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedMinAndMaxItemLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedMinAndMaxItemLen() { @@ -21,20 +31,13 @@ private RepeatedMinAndMaxItemLen() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedMinAndMaxItemLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen pars } public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen pars java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinAndMaxItemLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMinAndMa } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) } 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 index d3db3574..25a578e0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedMinAndMaxItemLenOrBuilder extends 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 index 9ec92483..6a17e59b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMax.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMax.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinMax} */ public final class RepeatedMinMax extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedMinMax.class.getName()); + } // Use RepeatedMinMax.newBuilder() to construct. - private RepeatedMinMax(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedMinMax(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedMinMax() { val_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedMinMax(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedMinMax parseFrom( } public static build.buf.validate.conformance.cases.RepeatedMinMax parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedMinMax parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinMax} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -315,38 +318,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMinMax r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedMinMax) { @@ -519,18 +490,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMinMax) } 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 index b9066568..9fc141f2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMaxOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMaxOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedMinMaxOrBuilder extends 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 index 45854b22..dce6df9f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedMinOrBuilder extends 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 index cfaf30d2..7b1173f4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUnique.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUnique.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedMultipleUnique} */ public final class RepeatedMultipleUnique extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedMultipleUnique.class.getName()); + } // Use RepeatedMultipleUnique.newBuilder() to construct. - private RepeatedMultipleUnique(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedMultipleUnique(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedMultipleUnique() { @@ -22,20 +32,13 @@ private RepeatedMultipleUnique() { b_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedMultipleUnique(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -125,7 +128,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < a_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, a_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, a_.getRaw(i)); } if (getBList().size() > 0) { output.writeUInt32NoTag(18); @@ -242,20 +245,20 @@ public static build.buf.validate.conformance.cases.RepeatedMultipleUnique parseF } public static build.buf.validate.conformance.cases.RepeatedMultipleUnique parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -263,20 +266,20 @@ public static build.buf.validate.conformance.cases.RepeatedMultipleUnique parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -296,7 +299,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -304,7 +307,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedMultipleUnique} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -313,7 +316,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -326,7 +329,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -380,38 +383,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMultiple } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedMultipleUnique) { @@ -704,18 +675,6 @@ public Builder clearB() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMultipleUnique) } 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 index ee9ee72c..7b328540 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUniqueOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUniqueOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedMultipleUniqueOrBuilder extends 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 index 2d59c719..c7e0f477 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNone.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedNone} */ public final class RepeatedNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedNone.class.getName()); + } // Use RepeatedNone.newBuilder() to construct. - private RepeatedNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedNone() { val_ = emptyLongList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedNone(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.conformance.cases.RepeatedNone parseFrom( } public static build.buf.validate.conformance.cases.RepeatedNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.conformance.cases.RepeatedNone parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -248,7 +251,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -257,7 +260,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -270,7 +273,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -318,38 +321,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedNone res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedNone) { @@ -515,18 +486,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedNone) } 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 index 6c5ca5ba..bbbdfea9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedNoneOrBuilder extends 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 index 94753a99..f042de02 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,127 +28,127 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_Embed_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_RepeatedMultipleUnique_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -226,162 +236,163 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_Embed_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(10); internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(11); internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(12); internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(13); internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(14); internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(15); internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(16); internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(17); internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(18); internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(19); internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(20); internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(21); internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(22); internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(23); internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(24); internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); } // @@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 index 6c5ebfb4..f3a720ce 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUnique.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUnique.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedUnique} */ public final class RepeatedUnique extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedUnique.class.getName()); + } // Use RepeatedUnique.newBuilder() to construct. - private RepeatedUnique(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedUnique(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedUnique() { @@ -21,20 +31,13 @@ private RepeatedUnique() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedUnique(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RepeatedUnique parseFrom( } public static build.buf.validate.conformance.cases.RepeatedUnique parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RepeatedUnique parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedUnique} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedUnique r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedUnique) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedUnique) } 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 index 33f4a8a1..4f398631 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUniqueOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUniqueOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedUniqueOrBuilder extends 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 index 5b827a6b..653de625 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefined.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefined.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined} */ public final class RepeatedYetAnotherExternalEnumDefined extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedYetAnotherExternalEnumDefined.class.getName()); + } // Use RepeatedYetAnotherExternalEnumDefined.newBuilder() to construct. - private RepeatedYetAnotherExternalEnumDefined(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedYetAnotherExternalEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedYetAnotherExternalEnumDefined() { val_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepeatedYetAnotherExternalEnumDefined(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -211,20 +214,20 @@ public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnu } public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -232,20 +235,20 @@ public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnu java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -265,7 +268,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -273,7 +276,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -282,7 +285,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -295,7 +298,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -349,38 +352,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RepeatedYetAnoth int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) { @@ -602,18 +573,6 @@ public Builder addAllValValue( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) } 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 index a26d4925..4766272b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefinedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefinedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RepeatedYetAnotherExternalEnumDefinedOrBuilder extends 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 new file mode 100644 index 00000000..6fd25f96 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMap.java @@ -0,0 +1,644 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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/RequiredEditionsMapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapOrBuilder.java new file mode 100644 index 00000000..9a26c65b --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapOrBuilder.java @@ -0,0 +1,45 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..b79fa899 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresence.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..9912312f --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimited.java @@ -0,0 +1,1097 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java new file mode 100644 index 00000000..f821dba6 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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/RequiredEditionsMessageExplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceOrBuilder.java new file mode 100644 index 00000000..7fa6cf1a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..b975e2f4 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequired.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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( + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..09f04706 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimited.java @@ -0,0 +1,1104 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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= */ 27, + /* patch= */ 3, + /* 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) { + getValFieldBuilder(); + } + } + @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, + getValFieldBuilder().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 getValFieldBuilder().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> + getValFieldBuilder() { + 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 new file mode 100644 index 00000000..2efb99be --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..f77b3ba2 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredOrBuilder.java @@ -0,0 +1,26 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..2b59a8f7 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneof.java @@ -0,0 +1,786 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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/RequiredEditionsOneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofOrBuilder.java new file mode 100644 index 00000000..88656afb --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofOrBuilder.java @@ -0,0 +1,47 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..1daf747e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeated.java @@ -0,0 +1,554 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..3231b63a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpanded.java @@ -0,0 +1,554 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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/RequiredEditionsRepeatedExpandedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedOrBuilder.java new file mode 100644 index 00000000..317d5b21 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedOrBuilder.java @@ -0,0 +1,36 @@ +// 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.27.3 + +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/RequiredEditionsRepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedOrBuilder.java new file mode 100644 index 00000000..68360a21 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedOrBuilder.java @@ -0,0 +1,36 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..3c4c990a --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresence.java @@ -0,0 +1,525 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..19a7312b --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefault.java @@ -0,0 +1,525 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java new file mode 100644 index 00000000..dff24182 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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/RequiredEditionsScalarExplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceOrBuilder.java new file mode 100644 index 00000000..420e0c4e --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..62228a33 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresence.java @@ -0,0 +1,501 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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/RequiredEditionsScalarImplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceOrBuilder.java new file mode 100644 index 00000000..12974033 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceOrBuilder.java @@ -0,0 +1,23 @@ +// 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.27.3 + +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 new file mode 100644 index 00000000..db0045c8 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequired.java @@ -0,0 +1,532 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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 new file mode 100644 index 00000000..474c41b4 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequiredOrBuilder.java @@ -0,0 +1,28 @@ +// 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.27.3 + +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 index 56f06622..b7a2fbc4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto2Proto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto2Proto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredFieldProto2Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,47 +28,47 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto2ScalarOptionalDefault_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto2ScalarRequired_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto2Oneof_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto2Repeated_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto2Map_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -102,63 +112,64 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(3); internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_RequiredProto2Oneof_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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_RequiredProto2Repeated_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto2Map_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index f4e89585..a5f0a310 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto3Proto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto3Proto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredFieldProto3Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,42 +28,42 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto3OptionalScalar_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto3Message_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto3OneOf_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto3Repeated_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_RequiredProto3Map_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -96,57 +106,58 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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_RequiredProto3OneOf_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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_RequiredProto3Repeated_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_RequiredProto3Map_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 new file mode 100644 index 00000000..2d6398f2 --- /dev/null +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProtoEditionsProto.java @@ -0,0 +1,284 @@ +// 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.27.3 + +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= */ 27, + /* patch= */ 3, + /* 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_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_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_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_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_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_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_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_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; + + 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\"N\n" + + "-RequiredEditionsScalarExplicitPresenceD" + + "efault\022\035\n\003val\030\001 \001(\t:\003fooB\006\272H\003\310\001\001R\003val\"G\n" + + "&RequiredEditionsScalarImplicitPresence\022" + + "\035\n\003val\030\001 \001(\tB\013\252\001\002\010\002\272H\003\310\001\001R\003val\"E\n$Requir" + + "edEditionsScalarLegacyRequired\022\035\n\003val\030\001 " + + "\001(\tB\013\252\001\002\010\003\272H\003\310\001\001R\003val\"\251\001\n\'RequiredEditio" + + "nsMessageExplicitPresence\022e\n\003val\030\001 \001(\0132K" + + ".buf.validate.conformance.cases.Required" + + "EditionsMessageExplicitPresence.MsgB\006\272H\003" + + "\310\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\300\001\n0Re" + + "quiredEditionsMessageExplicitPresenceDel" + + "imited\022s\n\003val\030\001 \001(\0132T.buf.validate.confo" + + "rmance.cases.RequiredEditionsMessageExpl" + + "icitPresenceDelimited.MsgB\013\252\001\002(\002\272H\003\310\001\001R\003" + + "val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\252\001\n%Require" + + "dEditionsMessageLegacyRequired\022h\n\003val\030\001 " + + "\001(\0132I.buf.validate.conformance.cases.Req" + + "uiredEditionsMessageLegacyRequired.MsgB\013" + + "\252\001\002\010\003\272H\003\310\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003va" + + "l\"\276\001\n.RequiredEditionsMessageLegacyRequi" + + "redDelimited\022s\n\003val\030\001 \001(\0132R.buf.validate" + + ".conformance.cases.RequiredEditionsMessa" + + "geLegacyRequiredDelimited.MsgB\r\252\001\004\010\003(\002\272H" + + "\003\310\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"F\n\025Re" + + "quiredEditionsOneof\022\026\n\001a\030\001 \001(\tB\006\272H\003\310\001\001H\000" + + "R\001a\022\016\n\001b\030\002 \001(\tH\000R\001bB\005\n\003val\"4\n\030RequiredEd" + + "itionsRepeated\022\030\n\003val\030\001 \003(\tB\006\272H\003\310\001\001R\003val" + + "\"A\n RequiredEditionsRepeatedExpanded\022\035\n\003" + + "val\030\001 \003(\tB\013\252\001\002\030\002\272H\003\310\001\001R\003val\"\245\001\n\023Required" + + "EditionsMap\022V\n\003val\030\001 \003(\0132<.buf.validate." + + "conformance.cases.RequiredEditionsMap.Va" + + "lEntryB\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:\0028\001B\343\001\n$" + + "build.buf.validate.conformance.casesB\037Re" + + "quiredFieldProtoEditionsProtoP\001\242\002\004BVCC\252\002" + + "\036Buf.Validate.Conformance.Cases\312\002\036Buf\\Va" + + "lidate\\Conformance\\Cases\342\002*Buf\\Validate\\" + + "Conformance\\Cases\\GPBMetadata\352\002!Buf::Val" + + "idate::Conformance::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_RequiredEditionsScalarExplicitPresence_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_descriptor = + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor.getNestedTypes().get(0); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_descriptor = + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor.getNestedTypes().get(0); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_descriptor = + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor.getNestedTypes().get(0); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_descriptor = + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor.getNestedTypes().get(0); + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_descriptor, + new java.lang.String[] { "A", "B", "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor, + new java.lang.String[] { "Val", }); + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_ValEntry_descriptor = + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor.getNestedTypes().get(0); + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_ValEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_buf_validate_conformance_cases_RequiredEditionsMap_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/RequiredProto2Map.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Map.java index 1616f686..17597f2b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Map.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Map.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Map} */ public final class RequiredProto2Map extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2Map) RequiredProto2MapOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2Map.class.getName()); + } // Use RequiredProto2Map.newBuilder() to construct. - private RequiredProto2Map(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2Map(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2Map() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Map parseFrom( } public static build.buf.validate.conformance.cases.RequiredProto2Map parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Map parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Map} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Ma } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Map) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Map) } @@ -645,7 +604,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2Map getDefaultI return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2Map parsePartialFrom( 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 index 9ef65998..caa2102b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2MapOrBuilder extends 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 index 0a44d429..52e0b7b9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Message.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Message.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Message} */ public final class RequiredProto2Message extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2Message.class.getName()); + } // Use RequiredProto2Message.newBuilder() to construct. - private RequiredProto2Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2Message() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -64,32 +67,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Message.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -161,7 +166,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -173,7 +178,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg par } public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -270,20 +275,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -303,7 +308,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -311,7 +316,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Message.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -320,7 +325,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -333,7 +338,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -383,38 +388,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Me result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Message.Msg) { @@ -559,18 +532,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Message.Msg) } @@ -585,7 +546,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg get return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Msg parsePartialFrom( @@ -754,20 +715,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Message parseFr } public static build.buf.validate.conformance.cases.RequiredProto2Message parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -775,20 +736,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Message parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -808,7 +769,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -816,7 +777,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Message} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -825,7 +786,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -838,12 +799,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -900,38 +861,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Me result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Message) { @@ -998,7 +927,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.RequiredProto2Message.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1104,11 +1033,11 @@ public build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder g /** * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1117,18 +1046,6 @@ public build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder g } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Message) } @@ -1143,7 +1060,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2Message getDefa return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2Message parsePartialFrom( 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 index a090070b..e8993b18 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2MessageOrBuilder extends 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 index af892ea8..d938592e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Oneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Oneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Oneof} */ public final class RequiredProto2Oneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2Oneof.class.getName()); + } // Use RequiredProto2Oneof.newBuilder() to construct. - private RequiredProto2Oneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2Oneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -200,10 +203,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } if (valCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); } getUnknownFields().writeTo(output); } @@ -215,10 +218,10 @@ public int getSerializedSize() { size = 0; if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,20 +313,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Oneof parseFrom } public static build.buf.validate.conformance.cases.RequiredProto2Oneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -331,20 +334,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Oneof parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -364,7 +367,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -372,7 +375,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Oneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -381,7 +384,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -394,7 +397,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -445,38 +448,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredPro result.val_ = this.val_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Oneof) { @@ -763,18 +734,6 @@ public Builder setBBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Oneof) } @@ -789,7 +748,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2Oneof getDefaul return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2Oneof parsePartialFrom( 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 index 14074f21..a737b74a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2OneofOrBuilder extends 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 index 76fcb479..f8b64e34 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Repeated.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Repeated.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Repeated} */ public final class RequiredProto2Repeated extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2Repeated.class.getName()); + } // Use RequiredProto2Repeated.newBuilder() to construct. - private RequiredProto2Repeated(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2Repeated() { @@ -21,20 +31,13 @@ private RequiredProto2Repeated() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto2Repeated(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Repeated parseF } public static build.buf.validate.conformance.cases.RequiredProto2Repeated parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2Repeated parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Repeated} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Repeated) { @@ -528,18 +499,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Repeated) } @@ -554,7 +513,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2Repeated getDef return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2Repeated parsePartialFrom( 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 index c1ebac84..373130d4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2RepeatedOrBuilder extends 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 index f6fdb65b..dd835539 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptional.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptional.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptional} */ public final class RequiredProto2ScalarOptional extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2ScalarOptional.class.getName()); + } // Use RequiredProto2ScalarOptional.newBuilder() to construct. - private RequiredProto2ScalarOptional(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2ScalarOptional(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2ScalarOptional() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto2ScalarOptional(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -105,7 +108,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -117,7 +120,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -193,20 +196,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional } public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -247,7 +250,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -255,7 +258,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptional} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -264,7 +267,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -277,7 +280,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -327,38 +330,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Sc result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarOptional) { @@ -503,18 +474,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptional) } @@ -529,7 +488,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2ScalarOptional parsePartialFrom( 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 index 3c5eaad7..94852bea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefault.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefault.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault} */ public final class RequiredProto2ScalarOptionalDefault extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2ScalarOptionalDefault.class.getName()); + } // Use RequiredProto2ScalarOptionalDefault.newBuilder() to construct. - private RequiredProto2ScalarOptionalDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2ScalarOptionalDefault(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2ScalarOptionalDefault() { val_ = "foo"; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto2ScalarOptionalDefault(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -105,7 +108,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -117,7 +120,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -193,20 +196,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalD } public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -214,20 +217,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -247,7 +250,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -255,7 +258,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -264,7 +267,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -277,7 +280,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -327,38 +330,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Sc result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) { @@ -503,18 +474,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) } @@ -529,7 +488,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalD return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2ScalarOptionalDefault parsePartialFrom( 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 index ff969cb9..7eaed5c2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2ScalarOptionalDefaultOrBuilder extends 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 index 61ce35a4..0207b4ae 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2ScalarOptionalOrBuilder extends 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 index a6465e48..999a8935 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequired.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarRequired} */ public final class RequiredProto2ScalarRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto2ScalarRequired.class.getName()); + } // Use RequiredProto2ScalarRequired.newBuilder() to construct. - private RequiredProto2ScalarRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto2ScalarRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto2ScalarRequired() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto2ScalarRequired(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -109,7 +112,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -121,7 +124,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -197,20 +200,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired } public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -218,20 +221,20 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -251,7 +254,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -259,7 +262,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -268,7 +271,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -281,7 +284,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -331,38 +334,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Sc result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarRequired) { @@ -510,18 +481,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarRequired) } @@ -536,7 +495,7 @@ public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequiredProto2ScalarRequired parsePartialFrom( 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 index c07100fe..16a0224a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto2ScalarRequiredOrBuilder extends 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 index 2170e0fd..1482edc9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Map.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Map.java @@ -1,31 +1,34 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Map} */ public final class RequiredProto3Map extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto3Map.class.getName()); + } // Use RequiredProto3Map.newBuilder() to construct. - private RequiredProto3Map(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto3Map(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto3Map() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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; @@ -44,7 +47,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,7 +147,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 + com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetVal(), @@ -240,20 +243,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Map parseFrom( } public static build.buf.validate.conformance.cases.RequiredProto3Map parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -261,20 +264,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Map parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -294,7 +297,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -302,7 +305,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Map} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -333,7 +336,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -346,7 +349,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -394,38 +397,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Ma } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Map) { @@ -619,18 +590,6 @@ public Builder putAllVal( bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Map) } 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 index 1e30178c..c2230f5b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto3MapOrBuilder extends 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 index fb07e440..e6bc90b4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Message.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Message.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Message} */ public final class RequiredProto3Message extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto3Message.class.getName()); + } // Use RequiredProto3Message.newBuilder() to construct. - private RequiredProto3Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto3Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto3Message() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -59,32 +62,34 @@ public interface MsgOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Message.Msg} */ public static final class Msg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Msg.class.getName()); + } // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Msg() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Msg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -144,8 +149,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -156,8 +161,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -228,20 +233,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg par } public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -282,7 +287,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -290,7 +295,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Message.Msg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -299,7 +304,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -312,7 +317,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -359,38 +364,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Me } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Message.Msg) { @@ -527,18 +500,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Message.Msg) } @@ -722,20 +683,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Message parseFr } public static build.buf.validate.conformance.cases.RequiredProto3Message parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -743,20 +704,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Message parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -776,7 +737,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -784,7 +745,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Message} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -793,7 +754,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -806,12 +767,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -868,38 +829,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Me result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Message) { @@ -966,7 +895,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.RequiredProto3Message.Msg val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1072,11 +1001,11 @@ public build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder g /** * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1085,18 +1014,6 @@ public build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder g } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Message) } 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 index dceda79d..e73c2afb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto3MessageOrBuilder extends 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 index 34b36c49..8f180cb2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOf.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOf.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OneOf} */ public final class RequiredProto3OneOf extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto3OneOf.class.getName()); + } // Use RequiredProto3OneOf.newBuilder() to construct. - private RequiredProto3OneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto3OneOf(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto3OneOf() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -200,10 +203,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } if (valCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); } getUnknownFields().writeTo(output); } @@ -215,10 +218,10 @@ public int getSerializedSize() { size = 0; if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,20 +313,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3OneOf parseFrom } public static build.buf.validate.conformance.cases.RequiredProto3OneOf parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -331,20 +334,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3OneOf parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -364,7 +367,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -372,7 +375,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OneOf} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -381,7 +384,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -394,7 +397,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -445,38 +448,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredPro result.val_ = this.val_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3OneOf) { @@ -761,18 +732,6 @@ public Builder setBBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3OneOf) } 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 index 78931b07..61ce9f42 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto3OneOfOrBuilder extends 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 index 93fd2f62..ffc86500 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalar.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalar.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OptionalScalar} */ public final class RequiredProto3OptionalScalar extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto3OptionalScalar.class.getName()); + } // Use RequiredProto3OptionalScalar.newBuilder() to construct. - private RequiredProto3OptionalScalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto3OptionalScalar(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto3OptionalScalar() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto3OptionalScalar(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -103,7 +106,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -115,7 +118,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar } public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -212,20 +215,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -245,7 +248,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -253,7 +256,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OptionalScalar} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -262,7 +265,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -275,7 +278,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -325,38 +328,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Op result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3OptionalScalar) { @@ -500,18 +471,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3OptionalScalar) } 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 index d2285224..0cf94236 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto3OptionalScalarOrBuilder extends 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 index 278acd71..4e98d62b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Repeated.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Repeated.java @@ -1,19 +1,29 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Repeated} */ public final class RequiredProto3Repeated extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto3Repeated.class.getName()); + } // Use RequiredProto3Repeated.newBuilder() to construct. - private RequiredProto3Repeated(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto3Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto3Repeated() { @@ -21,20 +31,13 @@ private RequiredProto3Repeated() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto3Repeated(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,7 +96,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < val_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -183,20 +186,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Repeated parseF } public static build.buf.validate.conformance.cases.RequiredProto3Repeated parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -204,20 +207,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Repeated parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -237,7 +240,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -245,7 +248,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Repeated} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -254,7 +257,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -267,7 +270,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Repeated) { @@ -529,18 +500,6 @@ public Builder addValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Repeated) } 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 index 35de6368..bf568c81 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto3RepeatedOrBuilder extends 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 index 944d7c19..e99f9b1d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Scalar.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Scalar.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Scalar} */ public final class RequiredProto3Scalar extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RequiredProto3Scalar.class.getName()); + } // Use RequiredProto3Scalar.newBuilder() to construct. - private RequiredProto3Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RequiredProto3Scalar(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequiredProto3Scalar() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequiredProto3Scalar(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Scalar parseFro } public static build.buf.validate.conformance.cases.RequiredProto3Scalar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.RequiredProto3Scalar parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Scalar} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Sc } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Scalar) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Scalar) } 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 index e6d7731c..43e9d4d2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface RequiredProto3ScalarOrBuilder extends 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 index f1a6696c..c27ff28a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32Const} */ public final class SFixed32Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32Const.class.getName()); + } // Use SFixed32Const.newBuilder() to construct. - private SFixed32Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32Const parseFrom( } public static build.buf.validate.conformance.cases.SFixed32Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32Const parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32Const re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32Const) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32Const) } 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 index 38752969..a34919a3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32ConstOrBuilder extends 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 index a0fe992a..63cc4de8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32ExGTELTE} */ public final class SFixed32ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32ExGTELTE.class.getName()); + } // Use SFixed32ExGTELTE.newBuilder() to construct. - private SFixed32ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed32ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32ExGTELTE parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32ExGTELTE } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32ExGTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32ExGTELTE) } 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 index 44fed859..d322c5d5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32ExGTELTEOrBuilder extends 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 index 34a2e806..40c5a689 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32ExLTGT} */ public final class SFixed32ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32ExLTGT.class.getName()); + } // Use SFixed32ExLTGT.newBuilder() to construct. - private SFixed32ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.SFixed32ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32ExLTGT parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32ExLTGT r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32ExLTGT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32ExLTGT) } 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 index 071a94a6..ed9224f3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32ExLTGTOrBuilder extends 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 index 37792330..91762d3c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32GT} */ public final class SFixed32GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32GT.class.getName()); + } // Use SFixed32GT.newBuilder() to construct. - private SFixed32GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32GT parseFrom( } public static build.buf.validate.conformance.cases.SFixed32GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32GT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GT) } 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 index 9dd703f4..98d140cc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTE} */ public final class SFixed32GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32GTE.class.getName()); + } // Use SFixed32GTE.newBuilder() to construct. - private SFixed32GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32GTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed32GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32GTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32GTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GTE) } 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 index 803450e7..489f2578 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTELTE} */ public final class SFixed32GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32GTELTE.class.getName()); + } // Use SFixed32GTELTE.newBuilder() to construct. - private SFixed32GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32GTELTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed32GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32GTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32GTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GTELTE) } 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 index c2268d96..99bf91c5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32GTELTEOrBuilder extends 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 index 222a330c..c824c85c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32GTEOrBuilder extends 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 index 7a734f5d..db045680 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTLT} */ public final class SFixed32GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32GTLT.class.getName()); + } // Use SFixed32GTLT.newBuilder() to construct. - private SFixed32GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32GTLT parseFrom( } public static build.buf.validate.conformance.cases.SFixed32GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32GTLT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GTLT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32GTLT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GTLT) } 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 index 3e8775ed..1b47ec51 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32GTLTOrBuilder extends 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 index eb054793..480157de 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32GTOrBuilder extends 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 index 3058a099..ab6752c0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32Ignore} */ public final class SFixed32Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32Ignore.class.getName()); + } // Use SFixed32Ignore.newBuilder() to construct. - private SFixed32Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32Ignore parseFrom( } public static build.buf.validate.conformance.cases.SFixed32Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32Ignore parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32Ignore r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32Ignore) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32Ignore) } 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 index 9c7c4985..86853fe7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32IgnoreOrBuilder extends 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 index bf118f82..5d477649 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32In} */ public final class SFixed32In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32In.class.getName()); + } // Use SFixed32In.newBuilder() to construct. - private SFixed32In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32In parseFrom( } public static build.buf.validate.conformance.cases.SFixed32In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32In resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32In) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32In) } 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 index 02140db0..aa30b141 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32InOrBuilder extends 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 index 40320dad..5ee8ea7b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32IncorrectType} */ public final class SFixed32IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32IncorrectType.class.getName()); + } // Use SFixed32IncorrectType.newBuilder() to construct. - private SFixed32IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32IncorrectType parseFr } public static build.buf.validate.conformance.cases.SFixed32IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32IncorrectType parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32Incorrec } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32IncorrectType) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32IncorrectType) } 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 index 26dbd89d..3325d50c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32IncorrectTypeOrBuilder extends 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 index 1c7dfc36..a8aaeb3f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32LT} */ public final class SFixed32LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32LT.class.getName()); + } // Use SFixed32LT.newBuilder() to construct. - private SFixed32LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32LT parseFrom( } public static build.buf.validate.conformance.cases.SFixed32LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32LT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32LT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32LT) } 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 index f3a48694..79f4593b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32LTE} */ public final class SFixed32LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32LTE.class.getName()); + } // Use SFixed32LTE.newBuilder() to construct. - private SFixed32LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32LTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed32LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32LTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32LTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32LTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32LTE) } 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 index 1dbd6e64..12dd1c79 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32LTEOrBuilder extends 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 index 063058c3..b02343e5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32LTOrBuilder extends 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 index 0a0bc4b0..be86066e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32None} */ public final class SFixed32None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32None.class.getName()); + } // Use SFixed32None.newBuilder() to construct. - private SFixed32None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32None parseFrom( } public static build.buf.validate.conformance.cases.SFixed32None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32None parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32None res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32None) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32None) } 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 index 6b4b2ba5..34c6bec2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32NoneOrBuilder extends 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 index 8831284d..f0573af7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed32NotIn} */ public final class SFixed32NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32NotIn.class.getName()); + } // Use SFixed32NotIn.newBuilder() to construct. - private SFixed32NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SFixed32NotIn parseFrom( } public static build.buf.validate.conformance.cases.SFixed32NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SFixed32NotIn parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed32NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed32NotIn re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed32NotIn) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32NotIn) } 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 index 92c15c18..48343354 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed32NotInOrBuilder extends 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 index 1a518a6e..fcad64d8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64Const} */ public final class SFixed64Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64Const.class.getName()); + } // Use SFixed64Const.newBuilder() to construct. - private SFixed64Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64Const parseFrom( } public static build.buf.validate.conformance.cases.SFixed64Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64Const parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64Const re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64Const) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64Const) } 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 index b87d8b86..b3d1d741 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64ConstOrBuilder extends 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 index f82e3fd8..11aa710f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64ExGTELTE} */ public final class SFixed64ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64ExGTELTE.class.getName()); + } // Use SFixed64ExGTELTE.newBuilder() to construct. - private SFixed64ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed64ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64ExGTELTE parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64ExGTELTE } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64ExGTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64ExGTELTE) } 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 index 7adb2827..ece97d70 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64ExGTELTEOrBuilder extends 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 index b99316b6..1ff29b92 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64ExLTGT} */ public final class SFixed64ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64ExLTGT.class.getName()); + } // Use SFixed64ExLTGT.newBuilder() to construct. - private SFixed64ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.SFixed64ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64ExLTGT parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64ExLTGT r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64ExLTGT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64ExLTGT) } 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 index 033fb82e..74c708b4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64ExLTGTOrBuilder extends 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 index d800a3be..d6bc844c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64GT} */ public final class SFixed64GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64GT.class.getName()); + } // Use SFixed64GT.newBuilder() to construct. - private SFixed64GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64GT parseFrom( } public static build.buf.validate.conformance.cases.SFixed64GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64GT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GT) } 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 index 63b292f3..693b9df6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTE} */ public final class SFixed64GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64GTE.class.getName()); + } // Use SFixed64GTE.newBuilder() to construct. - private SFixed64GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64GTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed64GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64GTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64GTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GTE) } 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 index c9429978..ff133815 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTELTE} */ public final class SFixed64GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64GTELTE.class.getName()); + } // Use SFixed64GTELTE.newBuilder() to construct. - private SFixed64GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64GTELTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed64GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64GTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64GTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GTELTE) } 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 index 78a946c8..1f4d83f9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64GTELTEOrBuilder extends 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 index e68279bd..a3dcf59c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64GTEOrBuilder extends 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 index f490c1c3..9ba5eb9b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTLT} */ public final class SFixed64GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64GTLT.class.getName()); + } // Use SFixed64GTLT.newBuilder() to construct. - private SFixed64GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64GTLT parseFrom( } public static build.buf.validate.conformance.cases.SFixed64GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64GTLT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GTLT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64GTLT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GTLT) } 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 index 195c9dd4..c9f0cca6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64GTLTOrBuilder extends 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 index cdcb1bcc..9d2943e9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64GTOrBuilder extends 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 index 41e4e8d5..df28bcfc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64Ignore} */ public final class SFixed64Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64Ignore.class.getName()); + } // Use SFixed64Ignore.newBuilder() to construct. - private SFixed64Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64Ignore parseFrom( } public static build.buf.validate.conformance.cases.SFixed64Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64Ignore parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64Ignore r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64Ignore) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64Ignore) } 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 index 4afb3bed..70fa21a7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64IgnoreOrBuilder extends 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 index 684f7a0f..8d96b93f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64In} */ public final class SFixed64In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64In.class.getName()); + } // Use SFixed64In.newBuilder() to construct. - private SFixed64In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64In parseFrom( } public static build.buf.validate.conformance.cases.SFixed64In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64In resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64In) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64In) } 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 index be32ac00..0fb22e10 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64InOrBuilder extends 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 index c68f7ff2..ceae2b81 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64IncorrectType} */ public final class SFixed64IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64IncorrectType.class.getName()); + } // Use SFixed64IncorrectType.newBuilder() to construct. - private SFixed64IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64IncorrectType parseFr } public static build.buf.validate.conformance.cases.SFixed64IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64IncorrectType parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64Incorrec } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64IncorrectType) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64IncorrectType) } 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 index 77746076..692cb676 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64IncorrectTypeOrBuilder extends 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 index 1d1e7cb0..8eb24393 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64LT} */ public final class SFixed64LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64LT.class.getName()); + } // Use SFixed64LT.newBuilder() to construct. - private SFixed64LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64LT parseFrom( } public static build.buf.validate.conformance.cases.SFixed64LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64LT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64LT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64LT) } 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 index 94b3aa46..d8add35f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64LTE} */ public final class SFixed64LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64LTE.class.getName()); + } // Use SFixed64LTE.newBuilder() to construct. - private SFixed64LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64LTE parseFrom( } public static build.buf.validate.conformance.cases.SFixed64LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64LTE parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64LTE resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64LTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64LTE) } 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 index 51556fe0..762d4f92 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64LTEOrBuilder extends 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 index f4c3aab7..3b2b02f7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64LTOrBuilder extends 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 index 363aaee3..4fd13e77 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64None} */ public final class SFixed64None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64None.class.getName()); + } // Use SFixed64None.newBuilder() to construct. - private SFixed64None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64None parseFrom( } public static build.buf.validate.conformance.cases.SFixed64None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64None parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64None res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64None) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64None) } 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 index a2b3e096..c83224f5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64NoneOrBuilder extends 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 index a7bc4d7a..5e7253e2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SFixed64NotIn} */ public final class SFixed64NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64NotIn.class.getName()); + } // Use SFixed64NotIn.newBuilder() to construct. - private SFixed64NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SFixed64NotIn parseFrom( } public static build.buf.validate.conformance.cases.SFixed64NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SFixed64NotIn parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SFixed64NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SFixed64NotIn re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SFixed64NotIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64NotIn) } 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 index 6c09a1d7..98533ceb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SFixed64NotInOrBuilder extends 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 index c3a89781..0d962e43 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32Const} */ public final class SInt32Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32Const.class.getName()); + } // Use SInt32Const.newBuilder() to construct. - private SInt32Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32Const parseFrom( } public static build.buf.validate.conformance.cases.SInt32Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32Const parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32Const resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32Const) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32Const) } 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 index 8cc95ba6..53f0c533 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32ConstOrBuilder extends 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 index 92362df8..d0fd79b2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32ExGTELTE} */ public final class SInt32ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32ExGTELTE.class.getName()); + } // Use SInt32ExGTELTE.newBuilder() to construct. - private SInt32ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.SInt32ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32ExGTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32ExGTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32ExGTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32ExGTELTE) } 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 index ef2c2f6c..5a3c286d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32ExGTELTEOrBuilder extends 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 index 0b480549..6b74f876 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32ExLTGT} */ public final class SInt32ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32ExLTGT.class.getName()); + } // Use SInt32ExLTGT.newBuilder() to construct. - private SInt32ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.SInt32ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32ExLTGT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32ExLTGT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32ExLTGT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32ExLTGT) } 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 index fa22e04b..8a5a6e85 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32ExLTGTOrBuilder extends 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 index 0e3d7e1a..0ec7cf33 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32GT} */ public final class SInt32GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32GT.class.getName()); + } // Use SInt32GT.newBuilder() to construct. - private SInt32GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32GT parseFrom( } public static build.buf.validate.conformance.cases.SInt32GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32GT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32GT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GT) } 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 index f6b39c7c..bf3206db 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32GTE} */ public final class SInt32GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32GTE.class.getName()); + } // Use SInt32GTE.newBuilder() to construct. - private SInt32GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32GTE parseFrom( } public static build.buf.validate.conformance.cases.SInt32GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32GTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32GTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GTE) } 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 index 9e918b72..1ba2f3f8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32GTELTE} */ public final class SInt32GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32GTELTE.class.getName()); + } // Use SInt32GTELTE.newBuilder() to construct. - private SInt32GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32GTELTE parseFrom( } public static build.buf.validate.conformance.cases.SInt32GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32GTELTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32GTELTE res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32GTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GTELTE) } 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 index 29e564f2..e71a1e8e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32GTELTEOrBuilder extends 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 index ded821c4..e359253a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32GTEOrBuilder extends 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 index 3c5851a4..08e1b0df 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32GTLT} */ public final class SInt32GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32GTLT.class.getName()); + } // Use SInt32GTLT.newBuilder() to construct. - private SInt32GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32GTLT parseFrom( } public static build.buf.validate.conformance.cases.SInt32GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32GTLT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32GTLT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GTLT) } 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 index 1c168ae3..21648b95 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32GTLTOrBuilder extends 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 index f1e62651..c9bc8c4a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32GTOrBuilder extends 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 index 6a575433..6eeb6f15 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32Ignore} */ public final class SInt32Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32Ignore.class.getName()); + } // Use SInt32Ignore.newBuilder() to construct. - private SInt32Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32Ignore parseFrom( } public static build.buf.validate.conformance.cases.SInt32Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32Ignore parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32Ignore res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32Ignore) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32Ignore) } 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 index 6fb50ffd..ed6ae482 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32IgnoreOrBuilder extends 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 index c26ed5be..4fa378e4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32In} */ public final class SInt32In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32In.class.getName()); + } // Use SInt32In.newBuilder() to construct. - private SInt32In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32In parseFrom( } public static build.buf.validate.conformance.cases.SInt32In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32In result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32In) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32In) } 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 index f21cde91..d3973e0a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32InOrBuilder extends 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 index e17e03f8..eb1b7014 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32IncorrectType} */ public final class SInt32IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32IncorrectType.class.getName()); + } // Use SInt32IncorrectType.newBuilder() to construct. - private SInt32IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32IncorrectType parseFrom } public static build.buf.validate.conformance.cases.SInt32IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32IncorrectType parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32IncorrectT } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32IncorrectType) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32IncorrectType) } 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 index d5889116..fb2b102c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32IncorrectTypeOrBuilder extends 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 index 4fffbe59..6157cf20 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32LT} */ public final class SInt32LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32LT.class.getName()); + } // Use SInt32LT.newBuilder() to construct. - private SInt32LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32LT parseFrom( } public static build.buf.validate.conformance.cases.SInt32LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32LT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32LT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32LT) } 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 index ac7a2e69..e87f5d81 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32LTE} */ public final class SInt32LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32LTE.class.getName()); + } // Use SInt32LTE.newBuilder() to construct. - private SInt32LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32LTE parseFrom( } public static build.buf.validate.conformance.cases.SInt32LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32LTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32LTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32LTE) } 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 index ec658fa1..cca8369b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32LTEOrBuilder extends 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 index 9a1e7a87..405eb72a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32LTOrBuilder extends 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 index 0ed4659d..4192f466 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32None} */ public final class SInt32None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32None.class.getName()); + } // Use SInt32None.newBuilder() to construct. - private SInt32None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32None parseFrom( } public static build.buf.validate.conformance.cases.SInt32None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32None resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32None) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32None) } 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 index 66f5aa63..88cea4f1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32NoneOrBuilder extends 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 index 939faf90..96577af0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt32NotIn} */ public final class SInt32NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32NotIn.class.getName()); + } // Use SInt32NotIn.newBuilder() to construct. - private SInt32NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.SInt32NotIn parseFrom( } public static build.buf.validate.conformance.cases.SInt32NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.SInt32NotIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt32NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt32NotIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt32NotIn) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32NotIn) } 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 index 892341e2..59bd4723 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt32NotInOrBuilder extends 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 index af355762..0fa02266 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64Const} */ public final class SInt64Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64Const.class.getName()); + } // Use SInt64Const.newBuilder() to construct. - private SInt64Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64Const parseFrom( } public static build.buf.validate.conformance.cases.SInt64Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64Const parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64Const resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64Const) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64Const) } 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 index d4a564e9..cf7fa186 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64ConstOrBuilder extends 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 index 3772e83e..51ecf47b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64ExGTELTE} */ public final class SInt64ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64ExGTELTE.class.getName()); + } // Use SInt64ExGTELTE.newBuilder() to construct. - private SInt64ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.SInt64ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64ExGTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64ExGTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64ExGTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64ExGTELTE) } 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 index 49e84f13..ec416acf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64ExGTELTEOrBuilder extends 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 index 23006af2..b069a7b5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64ExLTGT} */ public final class SInt64ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64ExLTGT.class.getName()); + } // Use SInt64ExLTGT.newBuilder() to construct. - private SInt64ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.SInt64ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64ExLTGT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64ExLTGT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64ExLTGT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64ExLTGT) } 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 index 25dc6aa1..e6c7f059 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64ExLTGTOrBuilder extends 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 index e92d2dfb..cd62c6f7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64GT} */ public final class SInt64GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64GT.class.getName()); + } // Use SInt64GT.newBuilder() to construct. - private SInt64GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64GT parseFrom( } public static build.buf.validate.conformance.cases.SInt64GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64GT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64GT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GT) } 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 index a3b0920f..6b683a4d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64GTE} */ public final class SInt64GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64GTE.class.getName()); + } // Use SInt64GTE.newBuilder() to construct. - private SInt64GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64GTE parseFrom( } public static build.buf.validate.conformance.cases.SInt64GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64GTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64GTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GTE) } 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 index 751e58e6..eada9902 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64GTELTE} */ public final class SInt64GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64GTELTE.class.getName()); + } // Use SInt64GTELTE.newBuilder() to construct. - private SInt64GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64GTELTE parseFrom( } public static build.buf.validate.conformance.cases.SInt64GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64GTELTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64GTELTE res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64GTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GTELTE) } 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 index 491e1611..2d1c8b1a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64GTELTEOrBuilder extends 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 index 3fe2ae33..0f88a228 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64GTEOrBuilder extends 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 index be42fc96..d0a39e8b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64GTLT} */ public final class SInt64GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64GTLT.class.getName()); + } // Use SInt64GTLT.newBuilder() to construct. - private SInt64GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64GTLT parseFrom( } public static build.buf.validate.conformance.cases.SInt64GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64GTLT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64GTLT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GTLT) } 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 index 09976923..063ea2b2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64GTLTOrBuilder extends 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 index a1fd5c64..98c608f1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64GTOrBuilder extends 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 index 4d80dedd..194d3820 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64Ignore} */ public final class SInt64Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64Ignore.class.getName()); + } // Use SInt64Ignore.newBuilder() to construct. - private SInt64Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64Ignore parseFrom( } public static build.buf.validate.conformance.cases.SInt64Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64Ignore parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64Ignore res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64Ignore) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64Ignore) } 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 index 90c020cf..c1ab2237 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64IgnoreOrBuilder extends 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 index 4d6e6112..9c81f985 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64In} */ public final class SInt64In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64In.class.getName()); + } // Use SInt64In.newBuilder() to construct. - private SInt64In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64In parseFrom( } public static build.buf.validate.conformance.cases.SInt64In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64In result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64In) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64In) } 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 index 5a75ea10..23dc957a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64InOrBuilder extends 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 index e8fa7442..324829aa 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64IncorrectType} */ public final class SInt64IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64IncorrectType.class.getName()); + } // Use SInt64IncorrectType.newBuilder() to construct. - private SInt64IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64IncorrectType parseFrom } public static build.buf.validate.conformance.cases.SInt64IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64IncorrectType parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64IncorrectT } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64IncorrectType) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64IncorrectType) } 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 index 49bde71a..d9aa3a0c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64IncorrectTypeOrBuilder extends 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 index 8a1eba06..d9474481 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64LT} */ public final class SInt64LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64LT.class.getName()); + } // Use SInt64LT.newBuilder() to construct. - private SInt64LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64LT parseFrom( } public static build.buf.validate.conformance.cases.SInt64LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64LT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64LT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64LT) } 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 index 36dfdd47..f1c4d450 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64LTE} */ public final class SInt64LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64LTE.class.getName()); + } // Use SInt64LTE.newBuilder() to construct. - private SInt64LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64LTE parseFrom( } public static build.buf.validate.conformance.cases.SInt64LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64LTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64LTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64LTE) } 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 index 4f971bdd..f4c86ffa 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64LTEOrBuilder extends 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 index a75ddaed..826ce492 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64LTOrBuilder extends 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 index d8fa49bc..94b9f649 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64None} */ public final class SInt64None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64None.class.getName()); + } // Use SInt64None.newBuilder() to construct. - private SInt64None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64None parseFrom( } public static build.buf.validate.conformance.cases.SInt64None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64None resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64None) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64None) } 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 index ea48cc79..2700e413 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64NoneOrBuilder extends 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 index 9c152e03..b3d3ff1c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.SInt64NotIn} */ public final class SInt64NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64NotIn.class.getName()); + } // Use SInt64NotIn.newBuilder() to construct. - private SInt64NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.SInt64NotIn parseFrom( } public static build.buf.validate.conformance.cases.SInt64NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.SInt64NotIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.SInt64NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.SInt64NotIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.SInt64NotIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64NotIn) } 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 index d69c24d8..6e9f6b2a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface SInt64NotInOrBuilder extends 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 index c63b93f6..39041986 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddress.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddress.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringAddress} */ public final class StringAddress extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringAddress.class.getName()); + } // Use StringAddress.newBuilder() to construct. - private StringAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringAddress(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringAddress() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringAddress(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringAddress parseFrom( } public static build.buf.validate.conformance.cases.StringAddress parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringAddress parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringAddress} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringAddress re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringAddress) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringAddress) } 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 index 2b0d9ea3..486726c2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddressOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddressOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringAddressOrBuilder extends 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 index f5f0b58b..ada223ac 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringConst.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringConst} */ public final class StringConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringConst.class.getName()); + } // Use StringConst.newBuilder() to construct. - private StringConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringConst() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringConst(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringConst parseFrom( } public static build.buf.validate.conformance.cases.StringConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringConst parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringConst resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringConst) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringConst) } 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 index 34fc530a..0c1ca5cf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringConstOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringConstOrBuilder extends 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 index 1408e90f..425dcbb6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringContains.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringContains.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringContains} */ public final class StringContains extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringContains.class.getName()); + } // Use StringContains.newBuilder() to construct. - private StringContains(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringContains(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringContains() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringContains(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringContains parseFrom( } public static build.buf.validate.conformance.cases.StringContains parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringContains parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringContains} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringContains r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringContains) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringContains) } 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 index 1bcb68ad..7339971f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringContainsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringContainsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringContainsOrBuilder extends 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 index 03cadf07..8388b362 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmail.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmail.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringEmail} */ public final class StringEmail extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringEmail.class.getName()); + } // Use StringEmail.newBuilder() to construct. - private StringEmail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringEmail(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringEmail() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringEmail(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringEmail parseFrom( } public static build.buf.validate.conformance.cases.StringEmail parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringEmail parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringEmail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringEmail resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringEmail) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringEmail) } 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 index d138898a..aedb8bf4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmailOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmailOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringEmailOrBuilder extends 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 index 4c80dcab..6aa4caa4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytes.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringEqualMinMaxBytes} */ public final class StringEqualMinMaxBytes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringEqualMinMaxBytes.class.getName()); + } // Use StringEqualMinMaxBytes.newBuilder() to construct. - private StringEqualMinMaxBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringEqualMinMaxBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringEqualMinMaxBytes() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringEqualMinMaxBytes(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes parseF } public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes parseD java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringEqualMinMaxBytes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringEqualMinMa } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringEqualMinMaxBytes) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringEqualMinMaxBytes) } 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 index c3e54ade..7875fe27 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringEqualMinMaxBytesOrBuilder extends 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 index b533eb45..62e71c5d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringEqualMinMaxLen} */ public final class StringEqualMinMaxLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringEqualMinMaxLen.class.getName()); + } // Use StringEqualMinMaxLen.newBuilder() to construct. - private StringEqualMinMaxLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringEqualMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringEqualMinMaxLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringEqualMinMaxLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringEqualMinMaxLen parseFro } public static build.buf.validate.conformance.cases.StringEqualMinMaxLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringEqualMinMaxLen parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringEqualMinMaxLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringEqualMinMa } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringEqualMinMaxLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringEqualMinMaxLen) } 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 index d0736684..c5615f43 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringEqualMinMaxLenOrBuilder extends 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 index d2fd6f37..cfffed97 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPort.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPort.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHostAndOptionalPort} */ public final class StringHostAndOptionalPort extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHostAndOptionalPort.class.getName()); + } // Use StringHostAndOptionalPort.newBuilder() to construct. - private StringHostAndOptionalPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHostAndOptionalPort(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHostAndOptionalPort() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHostAndOptionalPort(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHostAndOptionalPort par } public static build.buf.validate.conformance.cases.StringHostAndOptionalPort parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHostAndOptionalPort par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHostAndOptionalPort} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHostAndOpt } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHostAndOptionalPort) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHostAndOptionalPort) } 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 index 27e4177a..00c9a0c0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPortOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPortOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHostAndOptionalPortOrBuilder extends 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 index 3835e8d5..492db44f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPort.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPort.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHostAndPort} */ public final class StringHostAndPort extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHostAndPort.class.getName()); + } // Use StringHostAndPort.newBuilder() to construct. - private StringHostAndPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHostAndPort(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHostAndPort() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHostAndPort(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHostAndPort parseFrom( } public static build.buf.validate.conformance.cases.StringHostAndPort parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHostAndPort parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHostAndPort} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHostAndPor } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHostAndPort) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHostAndPort) } 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 index a8fc1efc..b8561170 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPortOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPortOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHostAndPortOrBuilder extends 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 index 89f048a6..077b7e10 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostname.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostname.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHostname} */ public final class StringHostname extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHostname.class.getName()); + } // Use StringHostname.newBuilder() to construct. - private StringHostname(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHostname(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHostname() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHostname(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHostname parseFrom( } public static build.buf.validate.conformance.cases.StringHostname parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHostname parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHostname} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHostname r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHostname) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHostname) } 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 index b636e3ad..c6683881 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostnameOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostnameOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHostnameOrBuilder extends 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 index 63ecc236..b220fc42 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderName.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderName.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderName} */ public final class StringHttpHeaderName extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHttpHeaderName.class.getName()); + } // Use StringHttpHeaderName.newBuilder() to construct. - private StringHttpHeaderName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHttpHeaderName(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHttpHeaderName() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHttpHeaderName(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderName parseFro } public static build.buf.validate.conformance.cases.StringHttpHeaderName parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderName parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderName} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeader } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderName) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderName) } 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 index 8da9f6ee..9ccfe6b4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLoose.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLoose.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderNameLoose} */ public final class StringHttpHeaderNameLoose extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHttpHeaderNameLoose.class.getName()); + } // Use StringHttpHeaderNameLoose.newBuilder() to construct. - private StringHttpHeaderNameLoose(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHttpHeaderNameLoose(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHttpHeaderNameLoose() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHttpHeaderNameLoose(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose par } public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderNameLoose} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeader } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderNameLoose) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderNameLoose) } 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 index 4003a942..7119806d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLooseOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLooseOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHttpHeaderNameLooseOrBuilder extends 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 index 3f974533..7a0ae5b9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHttpHeaderNameOrBuilder extends 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 index f836c1a2..9daededf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValue.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValue.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderValue} */ public final class StringHttpHeaderValue extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHttpHeaderValue.class.getName()); + } // Use StringHttpHeaderValue.newBuilder() to construct. - private StringHttpHeaderValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHttpHeaderValue(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHttpHeaderValue() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHttpHeaderValue(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderValue parseFr } public static build.buf.validate.conformance.cases.StringHttpHeaderValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderValue parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderValue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeader } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderValue) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderValue) } 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 index 4af50836..c7800c21 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLoose.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLoose.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderValueLoose} */ public final class StringHttpHeaderValueLoose extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringHttpHeaderValueLoose.class.getName()); + } // Use StringHttpHeaderValueLoose.newBuilder() to construct. - private StringHttpHeaderValueLoose(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringHttpHeaderValueLoose(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringHttpHeaderValueLoose() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringHttpHeaderValueLoose(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose pa } public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose pa java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderValueLoose} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeader } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderValueLoose) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderValueLoose) } 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 index 2401a513..38cd2f6b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLooseOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLooseOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHttpHeaderValueLooseOrBuilder extends 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 index 0f64ca5c..4d0cb7f9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringHttpHeaderValueOrBuilder extends 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 index c3ea0c85..10f7f0fe 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIP.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIP.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIP} */ public final class StringIP extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIP.class.getName()); + } // Use StringIP.newBuilder() to construct. - private StringIP(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIP(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIP() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIP(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIP parseFrom( } public static build.buf.validate.conformance.cases.StringIP parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIP} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIP result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIP) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIP) } 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 index c126cc40..355134a3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPOrBuilder extends 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 index ff290ab3..7db96775 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPPrefix} */ public final class StringIPPrefix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPPrefix.class.getName()); + } // Use StringIPPrefix.newBuilder() to construct. - private StringIPPrefix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPPrefix() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPPrefix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPPrefix parseFrom( } public static build.buf.validate.conformance.cases.StringIPPrefix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringIPPrefix parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPPrefix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPPrefix r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPPrefix) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPPrefix) } 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 index 2d285eb1..1bc0dd21 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPPrefixOrBuilder extends 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 index 8252f629..8e231604 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPWithPrefixLen} */ public final class StringIPWithPrefixLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPWithPrefixLen.class.getName()); + } // Use StringIPWithPrefixLen.newBuilder() to construct. - private StringIPWithPrefixLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPWithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPWithPrefixLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPWithPrefixLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPWithPrefixLen parseFr } public static build.buf.validate.conformance.cases.StringIPWithPrefixLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringIPWithPrefixLen parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPWithPrefixLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPWithPref } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPWithPrefixLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPWithPrefixLen) } 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 index 9b58bc84..e9842649 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPWithPrefixLenOrBuilder extends 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 index ac22513e..525b53f8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPv4} */ public final class StringIPv4 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPv4.class.getName()); + } // Use StringIPv4.newBuilder() to construct. - private StringIPv4(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPv4(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPv4() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPv4(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPv4 parseFrom( } public static build.buf.validate.conformance.cases.StringIPv4 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPv4} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPv4 resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPv4) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv4) } 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 index e3bc0a88..0d39fc77 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPv4OrBuilder extends 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 index b1228dd0..156a40c0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4Prefix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4Prefix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPv4Prefix} */ public final class StringIPv4Prefix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPv4Prefix.class.getName()); + } // Use StringIPv4Prefix.newBuilder() to construct. - private StringIPv4Prefix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPv4Prefix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPv4Prefix() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPv4Prefix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPv4Prefix parseFrom( } public static build.buf.validate.conformance.cases.StringIPv4Prefix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringIPv4Prefix parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPv4Prefix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPv4Prefix } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPv4Prefix) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv4Prefix) } 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 index c89c0858..5afc5ba0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4PrefixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4PrefixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPv4PrefixOrBuilder extends 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 index a0e44c64..f826d9db 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPv4WithPrefixLen} */ public final class StringIPv4WithPrefixLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPv4WithPrefixLen.class.getName()); + } // Use StringIPv4WithPrefixLen.newBuilder() to construct. - private StringIPv4WithPrefixLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPv4WithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPv4WithPrefixLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPv4WithPrefixLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen parse } public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPv4WithPrefixLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPv4WithPr } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPv4WithPrefixLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv4WithPrefixLen) } 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 index 95c51340..a35fb1ea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPv4WithPrefixLenOrBuilder extends 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 index c5db53f0..78320fc1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPv6} */ public final class StringIPv6 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPv6.class.getName()); + } // Use StringIPv6.newBuilder() to construct. - private StringIPv6(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPv6(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPv6() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPv6(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPv6 parseFrom( } public static build.buf.validate.conformance.cases.StringIPv6 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPv6} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPv6 resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPv6) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv6) } 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 index 573a9584..a993dc78 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPv6OrBuilder extends 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 index fdc1f050..f26024fc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6Prefix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6Prefix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPv6Prefix} */ public final class StringIPv6Prefix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPv6Prefix.class.getName()); + } // Use StringIPv6Prefix.newBuilder() to construct. - private StringIPv6Prefix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPv6Prefix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPv6Prefix() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPv6Prefix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPv6Prefix parseFrom( } public static build.buf.validate.conformance.cases.StringIPv6Prefix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringIPv6Prefix parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPv6Prefix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPv6Prefix } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPv6Prefix) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv6Prefix) } 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 index 7a188feb..9760ce01 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6PrefixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6PrefixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPv6PrefixOrBuilder extends 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 index 9b8ed564..dbd215b4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIPv6WithPrefixLen} */ public final class StringIPv6WithPrefixLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIPv6WithPrefixLen.class.getName()); + } // Use StringIPv6WithPrefixLen.newBuilder() to construct. - private StringIPv6WithPrefixLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIPv6WithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIPv6WithPrefixLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIPv6WithPrefixLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen parse } public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIPv6WithPrefixLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIPv6WithPr } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIPv6WithPrefixLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv6WithPrefixLen) } 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 index a4d76128..6ae16e8a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringIPv6WithPrefixLenOrBuilder extends 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 index a89e82a7..8ad66982 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringIn} */ public final class StringIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringIn.class.getName()); + } // Use StringIn.newBuilder() to construct. - private StringIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringIn() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringIn parseFrom( } public static build.buf.validate.conformance.cases.StringIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringIn result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringIn) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIn) } 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 index 5791c42f..44f6c916 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneof.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneof.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringInOneof} */ public final class StringInOneof extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringInOneof.class.getName()); + } // Use StringInOneof.newBuilder() to construct. - private StringInOneof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringInOneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringInOneof() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -146,7 +149,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fooCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, foo_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, foo_); } getUnknownFields().writeTo(output); } @@ -158,7 +161,7 @@ public int getSerializedSize() { size = 0; if (fooCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, foo_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, foo_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -242,20 +245,20 @@ public static build.buf.validate.conformance.cases.StringInOneof parseFrom( } public static build.buf.validate.conformance.cases.StringInOneof parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -263,20 +266,20 @@ public static build.buf.validate.conformance.cases.StringInOneof parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -296,7 +299,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -304,7 +307,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringInOneof} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -313,7 +316,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -326,7 +329,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -377,38 +380,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.cases.StringInOne result.foo_ = this.foo_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringInOneof) { @@ -588,18 +559,6 @@ public Builder setBarBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringInOneof) } 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 index 5dc3f19c..e531fb34 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneofOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneofOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringInOneofOrBuilder extends 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 index 51092734..b605ce23 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringInOrBuilder extends 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 index edd10405..be8d548a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringLen} */ public final class StringLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringLen.class.getName()); + } // Use StringLen.newBuilder() to construct. - private StringLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringLen parseFrom( } public static build.buf.validate.conformance.cases.StringLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringLen result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringLen) } 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 index 9f2d8bc2..051ff66e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytes.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringLenBytes} */ public final class StringLenBytes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringLenBytes.class.getName()); + } // Use StringLenBytes.newBuilder() to construct. - private StringLenBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringLenBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringLenBytes() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringLenBytes(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringLenBytes parseFrom( } public static build.buf.validate.conformance.cases.StringLenBytes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringLenBytes parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringLenBytes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringLenBytes r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringLenBytes) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringLenBytes) } 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 index 08a3615b..07ff4f0d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringLenBytesOrBuilder extends 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 index 5dd4d78f..97a1176c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringLenOrBuilder extends 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 index 7223019b..ffbeb6da 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytes.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringMaxBytes} */ public final class StringMaxBytes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringMaxBytes.class.getName()); + } // Use StringMaxBytes.newBuilder() to construct. - private StringMaxBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringMaxBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringMaxBytes() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringMaxBytes(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringMaxBytes parseFrom( } public static build.buf.validate.conformance.cases.StringMaxBytes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringMaxBytes parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringMaxBytes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringMaxBytes r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringMaxBytes) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMaxBytes) } 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 index d64826a2..c96d6c2f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringMaxBytesOrBuilder extends 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 index 62558bb7..3f660b84 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringMaxLen} */ public final class StringMaxLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringMaxLen.class.getName()); + } // Use StringMaxLen.newBuilder() to construct. - private StringMaxLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringMaxLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringMaxLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringMaxLen parseFrom( } public static build.buf.validate.conformance.cases.StringMaxLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringMaxLen parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringMaxLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringMaxLen res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringMaxLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMaxLen) } 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 index 28960a2b..7ebd0fb9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringMaxLenOrBuilder extends 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 index 6001ec08..d764f547 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytes.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringMinBytes} */ public final class StringMinBytes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringMinBytes.class.getName()); + } // Use StringMinBytes.newBuilder() to construct. - private StringMinBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringMinBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringMinBytes() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringMinBytes(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringMinBytes parseFrom( } public static build.buf.validate.conformance.cases.StringMinBytes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringMinBytes parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringMinBytes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringMinBytes r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringMinBytes) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinBytes) } 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 index a086fdef..4cdad3e5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringMinBytesOrBuilder extends 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 index 56eaeea2..28df1853 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringMinLen} */ public final class StringMinLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringMinLen.class.getName()); + } // Use StringMinLen.newBuilder() to construct. - private StringMinLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringMinLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringMinLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringMinLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringMinLen parseFrom( } public static build.buf.validate.conformance.cases.StringMinLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringMinLen parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringMinLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringMinLen res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringMinLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinLen) } 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 index 399b7ff9..4a5285a7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringMinLenOrBuilder extends 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 index a9088439..f8aa5446 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytes.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringMinMaxBytes} */ public final class StringMinMaxBytes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringMinMaxBytes.class.getName()); + } // Use StringMinMaxBytes.newBuilder() to construct. - private StringMinMaxBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringMinMaxBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringMinMaxBytes() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringMinMaxBytes(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringMinMaxBytes parseFrom( } public static build.buf.validate.conformance.cases.StringMinMaxBytes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringMinMaxBytes parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringMinMaxBytes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringMinMaxByte } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringMinMaxBytes) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinMaxBytes) } 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 index adcc17e3..90c96c54 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringMinMaxBytesOrBuilder extends 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 index c980170e..b91ba024 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLen.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLen.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringMinMaxLen} */ public final class StringMinMaxLen extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringMinMaxLen.class.getName()); + } // Use StringMinMaxLen.newBuilder() to construct. - private StringMinMaxLen(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringMinMaxLen() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringMinMaxLen(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringMinMaxLen parseFrom( } public static build.buf.validate.conformance.cases.StringMinMaxLen parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringMinMaxLen parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringMinMaxLen} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringMinMaxLen } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringMinMaxLen) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinMaxLen) } 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 index 1683e746..ce55ef24 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLenOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLenOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringMinMaxLenOrBuilder extends 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 index 82cb3a15..51d95ad1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNone.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringNone} */ public final class StringNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringNone.class.getName()); + } // Use StringNone.newBuilder() to construct. - private StringNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringNone() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringNone(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringNone parseFrom( } public static build.buf.validate.conformance.cases.StringNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringNone resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringNone) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNone) } 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 index 361d2b1c..c3f273e4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringNoneOrBuilder extends 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 index daefec90..2e962d06 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContains.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContains.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringNotContains} */ public final class StringNotContains extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringNotContains.class.getName()); + } // Use StringNotContains.newBuilder() to construct. - private StringNotContains(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringNotContains(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringNotContains() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringNotContains(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringNotContains parseFrom( } public static build.buf.validate.conformance.cases.StringNotContains parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringNotContains parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringNotContains} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringNotContain } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringNotContains) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotContains) } 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 index 248a4c6f..032f8a1f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContainsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContainsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringNotContainsOrBuilder extends 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 index 421b7682..1d7c5aae 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIn.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringNotIn} */ public final class StringNotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringNotIn.class.getName()); + } // Use StringNotIn.newBuilder() to construct. - private StringNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringNotIn() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringNotIn(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringNotIn parseFrom( } public static build.buf.validate.conformance.cases.StringNotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringNotIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringNotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringNotIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringNotIn) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIn) } 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 index 75ced75b..796b07a6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotInOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringNotInOrBuilder extends 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 index 2978986b..fcacd1f4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPattern.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPattern.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringPattern} */ public final class StringPattern extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringPattern.class.getName()); + } // Use StringPattern.newBuilder() to construct. - private StringPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringPattern(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringPattern() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringPattern(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringPattern parseFrom( } public static build.buf.validate.conformance.cases.StringPattern parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringPattern parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringPattern} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringPattern re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringPattern) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringPattern) } 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 index b9f18970..6f8ad5c0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapes.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringPatternEscapes} */ public final class StringPatternEscapes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringPatternEscapes.class.getName()); + } // Use StringPatternEscapes.newBuilder() to construct. - private StringPatternEscapes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringPatternEscapes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringPatternEscapes() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringPatternEscapes(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringPatternEscapes parseFro } public static build.buf.validate.conformance.cases.StringPatternEscapes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringPatternEscapes parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringPatternEscapes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringPatternEsc } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringPatternEscapes) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringPatternEscapes) } 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 index 15f9d1f7..a89d3aa4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringPatternEscapesOrBuilder extends 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 index b0b68f01..0c2de68a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringPatternOrBuilder extends 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 index 9aa28a13..7c781241 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringPrefix} */ public final class StringPrefix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringPrefix.class.getName()); + } // Use StringPrefix.newBuilder() to construct. - private StringPrefix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringPrefix() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringPrefix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringPrefix parseFrom( } public static build.buf.validate.conformance.cases.StringPrefix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringPrefix parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringPrefix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringPrefix res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringPrefix) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringPrefix) } 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 index 2731997d..05f645ee 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringPrefixOrBuilder extends 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 index c993997c..72bd30ea 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffix.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffix.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringSuffix} */ public final class StringSuffix extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringSuffix.class.getName()); + } // Use StringSuffix.newBuilder() to construct. - private StringSuffix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringSuffix(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringSuffix() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringSuffix(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringSuffix parseFrom( } public static build.buf.validate.conformance.cases.StringSuffix parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringSuffix parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringSuffix} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringSuffix res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringSuffix) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringSuffix) } 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 index 2db1a169..07ec9515 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffixOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffixOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringSuffixOrBuilder extends 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 index 8bb7c4ff..b4114b1c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUID.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUID.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringTUUID} */ public final class StringTUUID extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringTUUID.class.getName()); + } // Use StringTUUID.newBuilder() to construct. - private StringTUUID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringTUUID(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringTUUID() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringTUUID(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringTUUID parseFrom( } public static build.buf.validate.conformance.cases.StringTUUID parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringTUUID parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringTUUID} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringTUUID resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringTUUID) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringTUUID) } 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 index 0ed5133c..1606d9e7 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUIDOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUIDOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringTUUIDOrBuilder extends 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 index 4cd60be4..dd2d068b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURI.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURI.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringURI} */ public final class StringURI extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringURI.class.getName()); + } // Use StringURI.newBuilder() to construct. - private StringURI(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringURI(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringURI() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringURI(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringURI parseFrom( } public static build.buf.validate.conformance.cases.StringURI parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringURI} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringURI result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringURI) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringURI) } 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 index a08358c5..2ea84b0c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringURIOrBuilder extends 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 index 631b5e18..8c92dfb1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRef.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRef.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringURIRef} */ public final class StringURIRef extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringURIRef.class.getName()); + } // Use StringURIRef.newBuilder() to construct. - private StringURIRef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringURIRef(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringURIRef() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringURIRef(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringURIRef parseFrom( } public static build.buf.validate.conformance.cases.StringURIRef parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringURIRef parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringURIRef} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringURIRef res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringURIRef) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringURIRef) } 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 index 8afc3b56..828597fd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRefOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRefOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringURIRefOrBuilder extends 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 index e10ba8ca..040a49f4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUID.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUID.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringUUID} */ public final class StringUUID extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringUUID.class.getName()); + } // Use StringUUID.newBuilder() to construct. - private StringUUID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringUUID(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringUUID() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringUUID(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringUUID parseFrom( } public static build.buf.validate.conformance.cases.StringUUID parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringUUID} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringUUID resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringUUID) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringUUID) } 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 index a66de6b9..08483661 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnore.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.StringUUIDIgnore} */ public final class StringUUIDIgnore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringUUIDIgnore.class.getName()); + } // Use StringUUIDIgnore.newBuilder() to construct. - private StringUUIDIgnore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringUUIDIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringUUIDIgnore() { val_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringUUIDIgnore(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -93,8 +96,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } getUnknownFields().writeTo(output); } @@ -105,8 +108,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, val_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,20 +180,20 @@ public static build.buf.validate.conformance.cases.StringUUIDIgnore parseFrom( } public static build.buf.validate.conformance.cases.StringUUIDIgnore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -198,20 +201,20 @@ public static build.buf.validate.conformance.cases.StringUUIDIgnore parseDelimit java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -231,7 +234,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -239,7 +242,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.StringUUIDIgnore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -248,7 +251,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -261,7 +264,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -308,38 +311,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.StringUUIDIgnore } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.StringUUIDIgnore) { @@ -476,18 +447,6 @@ public Builder setValBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringUUIDIgnore) } 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 index 978416e7..effbba10 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnoreOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringUUIDIgnoreOrBuilder extends 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 index c1865414..b4b062f3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface StringUUIDOrBuilder extends 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 index efeab664..968b2ce8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringsProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/StringsProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringsProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,222 +28,222 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_StringNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_StringAddress_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringHostname_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIP_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPv4_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPv6_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPWithPrefixLen_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPv4WithPrefixLen_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPv6WithPrefixLen_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPPrefix_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPv4Prefix_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringIPv6Prefix_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringURI_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringURIRef_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringUUID_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringTUUID_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_StringHttpHeaderName_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -317,273 +327,274 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_StringNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringEmail_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringAddress_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringAddress_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringHostname_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringHostname_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIP_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIP_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPv4_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPv4_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPv6_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPv6_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringURI_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringURI_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringURIRef_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringURIRef_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringUUID_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringUUID_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringTUUID_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringTUUID_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(37); internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(38); internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(39); internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(40); internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(41); internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(42); internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(43); internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index 2ed5f8b3..391bd2d8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnum.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnum.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** @@ -24,6 +25,15 @@ public enum TestEnum UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TestEnum.class.getName()); + } /** * TEST_ENUM_UNSPECIFIED = 0; */ 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 index f50025e0..8d4352df 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnumAlias.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnumAlias.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** @@ -28,6 +29,15 @@ public enum TestEnumAlias UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TestEnumAlias.class.getName()); + } /** * TEST_ENUM_ALIAS_ALPHA = 1; */ 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 index bf71e8b3..f9b21ddc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsg.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsg.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TestMsg} */ public final class TestMsg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TestMsg.class.getName()); + } // Use TestMsg.newBuilder() to construct. - private TestMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TestMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TestMsg() { const_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TestMsg(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -120,8 +123,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(const_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, const_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, const_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNested()); @@ -135,8 +138,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(const_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, const_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, const_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -220,20 +223,20 @@ public static build.buf.validate.conformance.cases.TestMsg parseFrom( } public static build.buf.validate.conformance.cases.TestMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -241,20 +244,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -274,7 +277,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -282,7 +285,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TestMsg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -291,7 +294,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -304,12 +307,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getNestedFieldBuilder(); } @@ -370,38 +373,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TestMsg result) result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TestMsg) { @@ -550,7 +521,7 @@ public Builder setConstBytes( } private build.buf.validate.conformance.cases.TestMsg nested_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -656,11 +627,11 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getNestedOrBuilder( /** * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> getNestedFieldBuilder() { if (nestedBuilder_ == null) { - nestedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -669,18 +640,6 @@ public build.buf.validate.conformance.cases.TestMsgOrBuilder getNestedOrBuilder( } return nestedBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TestMsg) } 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 index 6c4b8775..f2123cd0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsgOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsgOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TestMsgOrBuilder extends 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 index 26b679de..85c29735 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsg.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsg.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TestOneofMsg} */ public final class TestOneofMsg extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TestOneofMsg.class.getName()); + } // Use TestOneofMsg.newBuilder() to construct. - private TestOneofMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TestOneofMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TestOneofMsg() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.TestOneofMsg parseFrom( } public static build.buf.validate.conformance.cases.TestOneofMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.TestOneofMsg parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TestOneofMsg} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TestOneofMsg res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TestOneofMsg) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TestOneofMsg) } 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 index 3a7b6b8a..bf7c8d20 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsgOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsgOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TestOneofMsgOrBuilder extends 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 index 2b03173a..599da1b2 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConst.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConst.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampConst} */ public final class TimestampConst extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampConst.class.getName()); + } // Use TimestampConst.newBuilder() to construct. - private TimestampConst(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampConst(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampConst() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampConst parseFrom( } public static build.buf.validate.conformance.cases.TimestampConst parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampConst parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampConst} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampConst r result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampConst) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampConst) } 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 index 7e360f14..9b4d26b9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConstOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampConstOrBuilder extends 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 index 221dc6c1..9fe50ac1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampExGTELTE} */ public final class TimestampExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampExGTELTE.class.getName()); + } // Use TimestampExGTELTE.newBuilder() to construct. - private TimestampExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.TimestampExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampExGTELTE parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampExGTELT result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampExGTELTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampExGTELTE) } 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 index dc36863f..adee2924 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampExGTELTEOrBuilder extends 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 index 215a3a55..ae68cefc 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampExLTGT} */ public final class TimestampExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampExLTGT.class.getName()); + } // Use TimestampExLTGT.newBuilder() to construct. - private TimestampExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampExLTGT parseFrom( } public static build.buf.validate.conformance.cases.TimestampExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampExLTGT parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampExLTGT result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampExLTGT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampExLTGT) } 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 index c8337d5a..972adc2b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampExLTGTOrBuilder extends 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 index 3acf4e42..31e68e3e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampGT} */ public final class TimestampGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampGT.class.getName()); + } // Use TimestampGT.newBuilder() to construct. - private TimestampGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampGT parseFrom( } public static build.buf.validate.conformance.cases.TimestampGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampGT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampGT resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampGT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGT) } 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 index 94f7262a..fcdc7886 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampGTE} */ public final class TimestampGTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampGTE.class.getName()); + } // Use TimestampGTE.newBuilder() to construct. - private TimestampGTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampGTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampGTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampGTE parseFrom( } public static build.buf.validate.conformance.cases.TimestampGTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampGTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampGTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTE res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampGTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTE) } 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 index c809e84c..8c0f0cc0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampGTELTE} */ public final class TimestampGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampGTELTE.class.getName()); + } // Use TimestampGTELTE.newBuilder() to construct. - private TimestampGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampGTELTE parseFrom( } public static build.buf.validate.conformance.cases.TimestampGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampGTELTE parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTELTE result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampGTELTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTELTE) } 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 index ebe524f9..85bcca06 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampGTELTEOrBuilder extends 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 index 56cd9e1c..c70fca93 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampGTEOrBuilder extends 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 index 5f37965a..8a8e517f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampGTLT} */ public final class TimestampGTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampGTLT.class.getName()); + } // Use TimestampGTLT.newBuilder() to construct. - private TimestampGTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampGTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampGTLT parseFrom( } public static build.buf.validate.conformance.cases.TimestampGTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampGTLT parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampGTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTLT re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampGTLT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTLT) } 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 index 381c0beb..fec4f49e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampGTLTOrBuilder extends 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 index ee6f86e0..21661f9f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNow.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNow.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampGTNow} */ public final class TimestampGTNow extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampGTNow.class.getName()); + } // Use TimestampGTNow.newBuilder() to construct. - private TimestampGTNow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampGTNow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampGTNow() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampGTNow parseFrom( } public static build.buf.validate.conformance.cases.TimestampGTNow parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampGTNow parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampGTNow} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTNow r result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampGTNow) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTNow) } 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 index e010b6ba..603e6f83 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampGTNowOrBuilder extends 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 index 1f48253a..e56771ca 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithin.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithin.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampGTNowWithin} */ public final class TimestampGTNowWithin extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampGTNowWithin.class.getName()); + } // Use TimestampGTNowWithin.newBuilder() to construct. - private TimestampGTNowWithin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampGTNowWithin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampGTNowWithin() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampGTNowWithin parseFro } public static build.buf.validate.conformance.cases.TimestampGTNowWithin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampGTNowWithin parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampGTNowWithin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTNowWi result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampGTNowWithin) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTNowWithin) } 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 index 2b20035c..85fe1676 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithinOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithinOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampGTNowWithinOrBuilder extends 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 index d266dd02..38973c07 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampGTOrBuilder extends 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 index 16dcb154..1937f7b3 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLT.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampLT} */ public final class TimestampLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampLT.class.getName()); + } // Use TimestampLT.newBuilder() to construct. - private TimestampLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampLT parseFrom( } public static build.buf.validate.conformance.cases.TimestampLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampLT parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampLT resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampLT) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLT) } 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 index c2e4a91c..90a5169c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTE.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampLTE} */ public final class TimestampLTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampLTE.class.getName()); + } // Use TimestampLTE.newBuilder() to construct. - private TimestampLTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampLTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampLTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampLTE parseFrom( } public static build.buf.validate.conformance.cases.TimestampLTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampLTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampLTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampLTE res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampLTE) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLTE) } 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 index 12365cd6..e54ddd93 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTEOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampLTEOrBuilder extends 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 index 594578df..2ee6581a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNow.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNow.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampLTNow} */ public final class TimestampLTNow extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampLTNow.class.getName()); + } // Use TimestampLTNow.newBuilder() to construct. - private TimestampLTNow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampLTNow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampLTNow() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampLTNow parseFrom( } public static build.buf.validate.conformance.cases.TimestampLTNow parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampLTNow parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampLTNow} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampLTNow r result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampLTNow) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLTNow) } 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 index ec01ae3a..1a1ecf5c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampLTNowOrBuilder extends 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 index d220fac4..4fc4667f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithin.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithin.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampLTNowWithin} */ public final class TimestampLTNowWithin extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampLTNowWithin.class.getName()); + } // Use TimestampLTNowWithin.newBuilder() to construct. - private TimestampLTNowWithin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampLTNowWithin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampLTNowWithin() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampLTNowWithin parseFro } public static build.buf.validate.conformance.cases.TimestampLTNowWithin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampLTNowWithin parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampLTNowWithin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampLTNowWi result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampLTNowWithin) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLTNowWithin) } 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 index 6c78bedb..878d2f39 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithinOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithinOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampLTNowWithinOrBuilder extends 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 index 38069a42..ef0da14e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampLTOrBuilder extends 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 index 7f75e6fc..444eb00d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampNone} */ public final class TimestampNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampNone.class.getName()); + } // Use TimestampNone.newBuilder() to construct. - private TimestampNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampNone parseFrom( } public static build.buf.validate.conformance.cases.TimestampNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampNone parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampNone re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampNone) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampNone) } 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 index 977f0831..1d2e5842 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampNoneOrBuilder extends 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 index 23148b14..74f22e22 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequired.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequired.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampRequired} */ public final class TimestampRequired extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampRequired.class.getName()); + } // Use TimestampRequired.newBuilder() to construct. - private TimestampRequired(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampRequired() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampRequired parseFrom( } public static build.buf.validate.conformance.cases.TimestampRequired parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampRequired parseDelimi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampRequired} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampRequire result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampRequired) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampRequired) } 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 index 456ef031..109426f9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequiredOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequiredOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampRequiredOrBuilder extends 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 index a6a304e1..71ef7be9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithin.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithin.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.TimestampWithin} */ public final class TimestampWithin extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampWithin.class.getName()); + } // Use TimestampWithin.newBuilder() to construct. - private TimestampWithin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampWithin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampWithin() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.TimestampWithin parseFrom( } public static build.buf.validate.conformance.cases.TimestampWithin parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.TimestampWithin parseDelimite java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.TimestampWithin} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.TimestampWithin result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.TimestampWithin) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { /** * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampWithin) } 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 index 4f4cd4ff..5b138425 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithinOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithinOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface TimestampWithinOrBuilder extends 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 index 486e723f..3892b535 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32Const} */ public final class UInt32Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32Const.class.getName()); + } // Use UInt32Const.newBuilder() to construct. - private UInt32Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32Const parseFrom( } public static build.buf.validate.conformance.cases.UInt32Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32Const parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32Const resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32Const) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32Const) } 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 index 941def83..a7a8b221 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32ConstOrBuilder extends 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 index 6a2160d4..a44cda97 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32ExGTELTE} */ public final class UInt32ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32ExGTELTE.class.getName()); + } // Use UInt32ExGTELTE.newBuilder() to construct. - private UInt32ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.UInt32ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32ExGTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32ExGTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32ExGTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32ExGTELTE) } 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 index afb83ec4..971c9077 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32ExGTELTEOrBuilder extends 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 index 110d8054..34a0c620 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32ExLTGT} */ public final class UInt32ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32ExLTGT.class.getName()); + } // Use UInt32ExLTGT.newBuilder() to construct. - private UInt32ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.UInt32ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32ExLTGT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32ExLTGT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32ExLTGT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32ExLTGT) } 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 index 0e15461a..70be5a69 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32ExLTGTOrBuilder extends 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 index 407da400..1c983fad 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32GT} */ public final class UInt32GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32GT.class.getName()); + } // Use UInt32GT.newBuilder() to construct. - private UInt32GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32GT parseFrom( } public static build.buf.validate.conformance.cases.UInt32GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32GT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32GT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GT) } 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 index e7fc71dd..19265eae 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32GTE} */ public final class UInt32GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32GTE.class.getName()); + } // Use UInt32GTE.newBuilder() to construct. - private UInt32GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32GTE parseFrom( } public static build.buf.validate.conformance.cases.UInt32GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32GTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32GTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GTE) } 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 index a7af47da..5412f1cb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32GTELTE} */ public final class UInt32GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32GTELTE.class.getName()); + } // Use UInt32GTELTE.newBuilder() to construct. - private UInt32GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32GTELTE parseFrom( } public static build.buf.validate.conformance.cases.UInt32GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32GTELTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32GTELTE res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32GTELTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GTELTE) } 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 index 233a0ebe..b84c359d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32GTELTEOrBuilder extends 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 index fd956cfb..11c843aa 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32GTEOrBuilder extends 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 index 53b2dfc4..72084926 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32GTLT} */ public final class UInt32GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32GTLT.class.getName()); + } // Use UInt32GTLT.newBuilder() to construct. - private UInt32GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32GTLT parseFrom( } public static build.buf.validate.conformance.cases.UInt32GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32GTLT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32GTLT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GTLT) } 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 index 401210bc..02fef7ec 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32GTLTOrBuilder extends 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 index 6983da1f..6c8faf33 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32GTOrBuilder extends 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 index 60a240b2..e7e98f77 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32Ignore} */ public final class UInt32Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32Ignore.class.getName()); + } // Use UInt32Ignore.newBuilder() to construct. - private UInt32Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32Ignore parseFrom( } public static build.buf.validate.conformance.cases.UInt32Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32Ignore parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32Ignore res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32Ignore) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32Ignore) } 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 index 5c1b691e..fb2f6302 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32IgnoreOrBuilder extends 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 index bfda277d..b001ea0d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32In} */ public final class UInt32In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32In.class.getName()); + } // Use UInt32In.newBuilder() to construct. - private UInt32In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32In parseFrom( } public static build.buf.validate.conformance.cases.UInt32In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32In result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32In) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32In) } 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 index 0eda9b71..1a289d36 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32InOrBuilder extends 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 index 90e8cd46..23da7f15 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32IncorrectType} */ public final class UInt32IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32IncorrectType.class.getName()); + } // Use UInt32IncorrectType.newBuilder() to construct. - private UInt32IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32IncorrectType parseFrom } public static build.buf.validate.conformance.cases.UInt32IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32IncorrectType parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32IncorrectT } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32IncorrectType) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32IncorrectType) } 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 index c9aad83b..bf61b89f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32IncorrectTypeOrBuilder extends 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 index eab3623f..a798ab6c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32LT} */ public final class UInt32LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32LT.class.getName()); + } // Use UInt32LT.newBuilder() to construct. - private UInt32LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32LT parseFrom( } public static build.buf.validate.conformance.cases.UInt32LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32LT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32LT) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32LT) } 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 index 0b5988a2..19119cc1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32LTE} */ public final class UInt32LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32LTE.class.getName()); + } // Use UInt32LTE.newBuilder() to construct. - private UInt32LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32LTE parseFrom( } public static build.buf.validate.conformance.cases.UInt32LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32LTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32LTE) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32LTE) } 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 index 5fe89888..db5cad3d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32LTEOrBuilder extends 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 index 40a6a4a4..043bf887 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32LTOrBuilder extends 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 index 951b9ef2..dce0ee7a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32None} */ public final class UInt32None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32None.class.getName()); + } // Use UInt32None.newBuilder() to construct. - private UInt32None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32None parseFrom( } public static build.buf.validate.conformance.cases.UInt32None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32None resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32None) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32None) } 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 index 3cf9cd63..a1cf5ccd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32NoneOrBuilder extends 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 index 8653397a..5bb16461 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt32NotIn} */ public final class UInt32NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32NotIn.class.getName()); + } // Use UInt32NotIn.newBuilder() to construct. - private UInt32NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.UInt32NotIn parseFrom( } public static build.buf.validate.conformance.cases.UInt32NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.UInt32NotIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt32NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt32NotIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt32NotIn) { @@ -406,18 +377,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32NotIn) } 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 index b4908aa5..51cbea47 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt32NotInOrBuilder extends 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 index 2254bcaa..d1e44b4f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Const.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Const.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64Const} */ public final class UInt64Const extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64Const.class.getName()); + } // Use UInt64Const.newBuilder() to construct. - private UInt64Const(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64Const(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64Const() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64Const parseFrom( } public static build.buf.validate.conformance.cases.UInt64Const parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64Const parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64Const} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64Const resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64Const) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64Const) } 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 index 0b4789c1..fbaa0486 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ConstOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ConstOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64ConstOrBuilder extends 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 index 9e29b939..f4410fb5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64ExGTELTE} */ public final class UInt64ExGTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64ExGTELTE.class.getName()); + } // Use UInt64ExGTELTE.newBuilder() to construct. - private UInt64ExGTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64ExGTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64ExGTELTE parseFrom( } public static build.buf.validate.conformance.cases.UInt64ExGTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64ExGTELTE parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64ExGTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64ExGTELTE r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64ExGTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64ExGTELTE) } 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 index 5ef5090b..16bd64d5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64ExGTELTEOrBuilder extends 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 index d57de45f..053b1087 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64ExLTGT} */ public final class UInt64ExLTGT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64ExLTGT.class.getName()); + } // Use UInt64ExLTGT.newBuilder() to construct. - private UInt64ExLTGT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64ExLTGT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64ExLTGT parseFrom( } public static build.buf.validate.conformance.cases.UInt64ExLTGT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64ExLTGT parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64ExLTGT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64ExLTGT res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64ExLTGT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64ExLTGT) } 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 index 4fb62827..6098e95b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64ExLTGTOrBuilder extends 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 index e8159b0e..64220f7a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64GT} */ public final class UInt64GT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64GT.class.getName()); + } // Use UInt64GT.newBuilder() to construct. - private UInt64GT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64GT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64GT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64GT parseFrom( } public static build.buf.validate.conformance.cases.UInt64GT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64GT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64GT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64GT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GT) } 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 index 04a48649..268c300e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64GTE} */ public final class UInt64GTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64GTE.class.getName()); + } // Use UInt64GTE.newBuilder() to construct. - private UInt64GTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64GTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64GTE parseFrom( } public static build.buf.validate.conformance.cases.UInt64GTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64GTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64GTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64GTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GTE) } 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 index 22460ab0..5ded953d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64GTELTE} */ public final class UInt64GTELTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64GTELTE.class.getName()); + } // Use UInt64GTELTE.newBuilder() to construct. - private UInt64GTELTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64GTELTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64GTELTE parseFrom( } public static build.buf.validate.conformance.cases.UInt64GTELTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64GTELTE parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64GTELTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64GTELTE res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64GTELTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GTELTE) } 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 index 3a050fe7..1132dc98 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64GTELTEOrBuilder extends 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 index 8d408dc9..295a7ab4 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64GTEOrBuilder extends 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 index bdb0cfe7..b35b7780 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64GTLT} */ public final class UInt64GTLT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64GTLT.class.getName()); + } // Use UInt64GTLT.newBuilder() to construct. - private UInt64GTLT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64GTLT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64GTLT parseFrom( } public static build.buf.validate.conformance.cases.UInt64GTLT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64GTLT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64GTLT resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64GTLT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GTLT) } 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 index 192dc22b..d7326dff 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64GTLTOrBuilder extends 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 index 4dfcd972..58c75abf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64GTOrBuilder extends 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 index 98ab2fd4..d1cdf15e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Ignore.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Ignore.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64Ignore} */ public final class UInt64Ignore extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64Ignore.class.getName()); + } // Use UInt64Ignore.newBuilder() to construct. - private UInt64Ignore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64Ignore() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64Ignore parseFrom( } public static build.buf.validate.conformance.cases.UInt64Ignore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64Ignore parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64Ignore} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64Ignore res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64Ignore) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64Ignore) } 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 index 6eae5358..107b115b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IgnoreOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IgnoreOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64IgnoreOrBuilder extends 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 index 8b2a0b46..d951d226 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64In.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64In.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64In} */ public final class UInt64In extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64In.class.getName()); + } // Use UInt64In.newBuilder() to construct. - private UInt64In(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64In(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64In() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64In parseFrom( } public static build.buf.validate.conformance.cases.UInt64In parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64In} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64In result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64In) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64In) } 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 index 1a104221..ccf0f42e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64InOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64InOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64InOrBuilder extends 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 index 382e2d74..2fa68bd0 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectType.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectType.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64IncorrectType} */ public final class UInt64IncorrectType extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64IncorrectType.class.getName()); + } // Use UInt64IncorrectType.newBuilder() to construct. - private UInt64IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64IncorrectType parseFrom } public static build.buf.validate.conformance.cases.UInt64IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64IncorrectType parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64IncorrectT } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64IncorrectType) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64IncorrectType) } 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 index 3d5aaf8f..955aa945 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectTypeOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectTypeOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64IncorrectTypeOrBuilder extends 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 index 88ffa648..bf900a2f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LT.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LT.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64LT} */ public final class UInt64LT extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64LT.class.getName()); + } // Use UInt64LT.newBuilder() to construct. - private UInt64LT(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64LT(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64LT() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64LT parseFrom( } public static build.buf.validate.conformance.cases.UInt64LT parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64LT} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64LT result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64LT) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64LT) } 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 index df7ec714..5e6e5241 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTE.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTE.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64LTE} */ public final class UInt64LTE extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64LTE.class.getName()); + } // Use UInt64LTE.newBuilder() to construct. - private UInt64LTE(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64LTE() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64LTE parseFrom( } public static build.buf.validate.conformance.cases.UInt64LTE parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64LTE} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64LTE result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64LTE) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64LTE) } 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 index 910925ba..0abf41bb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTEOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTEOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64LTEOrBuilder extends 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 index 96656f3f..367bea78 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64LTOrBuilder extends 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 index ae26de6f..74ab9a4a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64None.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64None.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64None} */ public final class UInt64None extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64None.class.getName()); + } // Use UInt64None.newBuilder() to construct. - private UInt64None(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64None(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64None() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64None parseFrom( } public static build.buf.validate.conformance.cases.UInt64None parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64None} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64None resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64None) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64None) } 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 index b1a965a3..1ffe4179 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NoneOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64NoneOrBuilder extends 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 index 1476ef16..b1e71c88 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotIn.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotIn.java @@ -1,38 +1,41 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.UInt64NotIn} */ public final class UInt64NotIn extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64NotIn.class.getName()); + } // Use UInt64NotIn.newBuilder() to construct. - private UInt64NotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64NotIn() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -150,20 +153,20 @@ public static build.buf.validate.conformance.cases.UInt64NotIn parseFrom( } public static build.buf.validate.conformance.cases.UInt64NotIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -171,20 +174,20 @@ public static build.buf.validate.conformance.cases.UInt64NotIn parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -204,7 +207,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -212,7 +215,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.UInt64NotIn} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -221,7 +224,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -234,7 +237,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -281,38 +284,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.UInt64NotIn resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.UInt64NotIn) { @@ -407,18 +378,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64NotIn) } 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 index c03cc3e8..5cc0e2bd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotInOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotInOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/conformance/cases/numbers.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface UInt64NotInOrBuilder extends 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 index beddb25b..d8f73f3c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktAnyProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktAnyProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktAnyProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,22 +28,22 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_AnyNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -71,34 +81,35 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_AnyNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); } // @@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 index 4de4cff4..b8346093 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktDurationProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktDurationProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktDurationProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,72 +28,72 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_DurationNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -141,94 +151,95 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_DurationNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_DurationNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationNone_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationRequired_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_conformance_cases_DurationRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationRequired_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationConst_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_buf_validate_conformance_cases_DurationConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationConst_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationIn_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_buf_validate_conformance_cases_DurationIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationIn_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationNotIn_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_buf_validate_conformance_cases_DurationNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationNotIn_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationLT_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_buf_validate_conformance_cases_DurationLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationLT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationLTE_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_conformance_cases_DurationLTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationLTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationGT_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_buf_validate_conformance_cases_DurationGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationGT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationGTE_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_buf_validate_conformance_cases_DurationGTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationGTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationGTLT_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_buf_validate_conformance_cases_DurationGTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationGTLT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationExLTGT_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_buf_validate_conformance_cases_DurationExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationExLTGT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationGTELTE_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_buf_validate_conformance_cases_DurationGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationGTELTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationExGTELTE_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_buf_validate_conformance_cases_DurationExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationExGTELTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_descriptor, new java.lang.String[] { "DurationVal", "IntVal", }); + descriptor.resolveAllFeaturesImmutable(); + build.buf.validate.ValidateProto.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); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOne.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOne.java index dffa3626..f6eebbc9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOne.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOne.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne} */ public final class WktLevelOne extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WktLevelOne) WktLevelOneOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktLevelOne.class.getName()); + } // Use WktLevelOne.newBuilder() to construct. - private WktLevelOne(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WktLevelOne(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WktLevelOne() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -62,31 +65,33 @@ public interface WktLevelTwoOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne.WktLevelTwo} */ public static final class WktLevelTwo extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktLevelTwo.class.getName()); + } // Use WktLevelTwo.newBuilder() to construct. - private WktLevelTwo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WktLevelTwo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WktLevelTwo() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -113,32 +118,34 @@ public interface WktLevelThreeOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree} */ public static final class WktLevelThree extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktLevelThree.class.getName()); + } // Use WktLevelThree.newBuilder() to construct. - private WktLevelThree(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WktLevelThree(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WktLevelThree() { uuid_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WktLevelThree(); - } - 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -198,8 +205,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_); } getUnknownFields().writeTo(output); } @@ -210,8 +217,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,20 +289,20 @@ public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLe } public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -303,20 +310,20 @@ public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -336,7 +343,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -344,7 +351,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -353,7 +360,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -366,7 +373,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -413,38 +420,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WktLevelOne.WktL } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) { @@ -581,18 +556,6 @@ public Builder setUuidBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) } @@ -776,20 +739,20 @@ public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo parse } public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -797,20 +760,20 @@ public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo parse java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -830,7 +793,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -838,7 +801,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne.WktLevelTwo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -847,7 +810,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -860,12 +823,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getThreeFieldBuilder(); } @@ -922,38 +885,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WktLevelOne.WktL result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) { @@ -1020,7 +951,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1126,11 +1057,11 @@ public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThre /** * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getThreeFieldBuilder() { if (threeBuilder_ == null) { - threeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1139,18 +1070,6 @@ public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThre } return threeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) } @@ -1334,20 +1253,20 @@ public static build.buf.validate.conformance.cases.WktLevelOne parseFrom( } public static build.buf.validate.conformance.cases.WktLevelOne parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -1355,20 +1274,20 @@ public static build.buf.validate.conformance.cases.WktLevelOne parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -1388,7 +1307,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1396,7 +1315,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -1405,7 +1324,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1418,12 +1337,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getTwoFieldBuilder(); } @@ -1480,38 +1399,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WktLevelOne resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WktLevelOne) { @@ -1578,7 +1465,7 @@ public Builder mergeFrom( private int bitField0_; private build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -1684,11 +1571,11 @@ public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder get /** * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getTwoFieldBuilder() { if (twoBuilder_ == null) { - twoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1697,18 +1584,6 @@ public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder get } return twoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WktLevelOne) } 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 index 882b3622..a0bda48f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WktLevelOneOrBuilder extends 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 index 3b0aa948..075dadeb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktNestedProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktNestedProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktNestedProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,17 +28,17 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -63,27 +73,28 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index e9444458..66b3923b 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktTimestampProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktTimestampProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktTimestampProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,82 +28,82 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_TimestampNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_TimestampGTNow_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_TimestampWithin_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -154,106 +164,107 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_TimestampNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_TimestampNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampNone_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampRequired_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_conformance_cases_TimestampRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampRequired_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampConst_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_buf_validate_conformance_cases_TimestampConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampConst_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampLT_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_buf_validate_conformance_cases_TimestampLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampLT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampLTE_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_buf_validate_conformance_cases_TimestampLTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampLTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampGT_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_buf_validate_conformance_cases_TimestampGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampGT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampGTE_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_conformance_cases_TimestampGTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampGTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampGTLT_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_buf_validate_conformance_cases_TimestampGTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampGTLT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampExLTGT_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_buf_validate_conformance_cases_TimestampExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampExLTGT_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampGTELTE_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_buf_validate_conformance_cases_TimestampGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampGTELTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampExGTELTE_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_buf_validate_conformance_cases_TimestampExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampExGTELTE_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampLTNow_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_buf_validate_conformance_cases_TimestampLTNow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampLTNow_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampGTNow_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_buf_validate_conformance_cases_TimestampGTNow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampGTNow_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampWithin_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_buf_validate_conformance_cases_TimestampWithin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampWithin_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_descriptor, new java.lang.String[] { "Val", }); internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_descriptor, new java.lang.String[] { "Val", }); + descriptor.resolveAllFeaturesImmutable(); + build.buf.validate.ValidateProto.getDescriptor(); + com.google.protobuf.TimestampProto.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); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktWrappersProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktWrappersProto.java index 2535cf08..672c4d9c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktWrappersProto.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WktWrappersProto.java @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public final class WktWrappersProto { private WktWrappersProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WktWrappersProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,72 +28,72 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperNone_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperFloat_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperFloat_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperDouble_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperDouble_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperInt64_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperInt64_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperInt32_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperInt32_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperUInt64_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperUInt64_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperUInt32_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperUInt32_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperBool_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperBool_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperString_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperString_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperBytes_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperBytes_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperRequiredString_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperRequiredString_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -141,94 +151,95 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_WrapperNone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); } // @@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 index ef9fe78c..c9550700 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBool.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBool.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperBool} */ public final class WrapperBool extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperBool.class.getName()); + } // Use WrapperBool.newBuilder() to construct. - private WrapperBool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperBool(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperBool() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperBool parseFrom( } public static build.buf.validate.conformance.cases.WrapperBool parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperBool parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperBool} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperBool resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperBool) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.BoolValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { /** * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperBool) } 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 index 220eb53b..de7f28b5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBoolOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBoolOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperBoolOrBuilder extends 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 index 7c38b84d..b8fac6bf 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytes.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytes.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperBytes} */ public final class WrapperBytes extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperBytes.class.getName()); + } // Use WrapperBytes.newBuilder() to construct. - private WrapperBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperBytes() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperBytes parseFrom( } public static build.buf.validate.conformance.cases.WrapperBytes parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperBytes parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperBytes} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperBytes res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperBytes) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.BytesValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { /** * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperBytes) } 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 index 6ba9e43c..b0487e9f 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytesOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytesOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperBytesOrBuilder extends 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 index 5150f228..16ad78ee 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDouble.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDouble.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperDouble} */ public final class WrapperDouble extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperDouble.class.getName()); + } // Use WrapperDouble.newBuilder() to construct. - private WrapperDouble(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperDouble(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperDouble() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperDouble parseFrom( } public static build.buf.validate.conformance.cases.WrapperDouble parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperDouble parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperDouble} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperDouble re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperDouble) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.DoubleValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { /** * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperDouble) } 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 index 4cf7162c..68a6b5eb 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDoubleOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDoubleOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperDoubleOrBuilder extends 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 index 5247a58a..73c00853 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloat.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloat.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperFloat} */ public final class WrapperFloat extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperFloat.class.getName()); + } // Use WrapperFloat.newBuilder() to construct. - private WrapperFloat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperFloat(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperFloat() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperFloat parseFrom( } public static build.buf.validate.conformance.cases.WrapperFloat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperFloat parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperFloat} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperFloat res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperFloat) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { /** * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperFloat) } 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 index c3079451..1a495db6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloatOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloatOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperFloatOrBuilder extends 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 index 12e1bc2a..0f8d6cfd 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperInt32} */ public final class WrapperInt32 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperInt32.class.getName()); + } // Use WrapperInt32.newBuilder() to construct. - private WrapperInt32(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperInt32(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperInt32() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperInt32 parseFrom( } public static build.buf.validate.conformance.cases.WrapperInt32 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperInt32 parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperInt32} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperInt32 res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperInt32) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { /** * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperInt32) } 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 index 90faf1b4..ef30962c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperInt32OrBuilder extends 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 index 6e881389..2b5182e8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperInt64} */ public final class WrapperInt64 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperInt64.class.getName()); + } // Use WrapperInt64.newBuilder() to construct. - private WrapperInt64(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperInt64(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperInt64() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperInt64 parseFrom( } public static build.buf.validate.conformance.cases.WrapperInt64 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperInt64 parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperInt64} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperInt64 res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperInt64) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Int64Value val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { /** * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperInt64) } 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 index 485215d7..d5b7b1de 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperInt64OrBuilder extends 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 index 5c205f3b..071de24e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNone.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNone.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperNone} */ public final class WrapperNone extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperNone.class.getName()); + } // Use WrapperNone.newBuilder() to construct. - private WrapperNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperNone(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperNone() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperNone parseFrom( } public static build.buf.validate.conformance.cases.WrapperNone parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperNone parseDelimitedFro java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperNone} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperNone resu result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperNone) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -520,11 +491,11 @@ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { /** * .google.protobuf.Int32Value val = 1 [json_name = "val"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperNone) } 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 index 5e0e0207..0bcb3ff1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNoneOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNoneOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperNoneOrBuilder extends 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 index 7c27a57b..0fc268ae 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidString.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidString.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperOptionalUuidString} */ public final class WrapperOptionalUuidString extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperOptionalUuidString.class.getName()); + } // Use WrapperOptionalUuidString.newBuilder() to construct. - private WrapperOptionalUuidString(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperOptionalUuidString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperOptionalUuidString() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperOptionalUuidString par } public static build.buf.validate.conformance.cases.WrapperOptionalUuidString parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperOptionalUuidString par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperOptionalUuidString} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperOptionalU result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperOptionalUuidString) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { /** * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperOptionalUuidString) } 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 index ef4ad5ab..76706431 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidStringOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidStringOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperOptionalUuidStringOrBuilder extends 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 index 4106ecb2..f30947d5 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyString.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyString.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredEmptyString} */ public final class WrapperRequiredEmptyString extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperRequiredEmptyString.class.getName()); + } // Use WrapperRequiredEmptyString.newBuilder() to construct. - private WrapperRequiredEmptyString(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperRequiredEmptyString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperRequiredEmptyString() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString pa } public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString pa java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredEmptyString} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperRequiredE result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperRequiredEmptyString) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { /** * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperRequiredEmptyString) } 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 index d6c697fc..5685f370 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyStringOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyStringOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperRequiredEmptyStringOrBuilder extends 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 index 034b7f0c..c40363a6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloat.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloat.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredFloat} */ public final class WrapperRequiredFloat extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperRequiredFloat.class.getName()); + } // Use WrapperRequiredFloat.newBuilder() to construct. - private WrapperRequiredFloat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperRequiredFloat(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperRequiredFloat() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperRequiredFloat parseFro } public static build.buf.validate.conformance.cases.WrapperRequiredFloat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperRequiredFloat parseDel java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredFloat} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperRequiredF result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperRequiredFloat) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { /** * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperRequiredFloat) } 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 index 0dda3490..9cb07a9c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloatOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloatOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperRequiredFloatOrBuilder extends 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 index d4bac917..9da79338 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredString.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredString.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredString} */ public final class WrapperRequiredString extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperRequiredString.class.getName()); + } // Use WrapperRequiredString.newBuilder() to construct. - private WrapperRequiredString(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperRequiredString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperRequiredString() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperRequiredString parseFr } public static build.buf.validate.conformance.cases.WrapperRequiredString parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperRequiredString parseDe java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredString} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperRequiredS result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperRequiredString) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { /** * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperRequiredString) } 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 index da3bf734..8fc5bf7c 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredStringOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredStringOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperRequiredStringOrBuilder extends 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 index 2a3c9f26..33b3c5f1 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperString.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperString.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperString} */ public final class WrapperString extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperString.class.getName()); + } // Use WrapperString.newBuilder() to construct. - private WrapperString(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperString() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperString parseFrom( } public static build.buf.validate.conformance.cases.WrapperString parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperString parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperString} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperString re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperString) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { /** * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperString) } 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 index 40a8abe0..c86c3b4d 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperStringOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperStringOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperStringOrBuilder extends 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 index e70beb30..0d856c17 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperUInt32} */ public final class WrapperUInt32 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperUInt32.class.getName()); + } // Use WrapperUInt32.newBuilder() to construct. - private WrapperUInt32(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperUInt32(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperUInt32() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperUInt32 parseFrom( } public static build.buf.validate.conformance.cases.WrapperUInt32 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperUInt32 parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperUInt32} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperUInt32 re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperUInt32) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.UInt32Value val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { /** * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperUInt32) } 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 index 4dabc491..09be4f44 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperUInt32OrBuilder extends 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 index 34dd34ee..dae4a9af 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; /** * Protobuf type {@code buf.validate.conformance.cases.WrapperUInt64} */ public final class WrapperUInt64 extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + WrapperUInt64.class.getName()); + } // Use WrapperUInt64.newBuilder() to construct. - private WrapperUInt64(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private WrapperUInt64(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WrapperUInt64() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.WrapperUInt64 parseFrom( } public static build.buf.validate.conformance.cases.WrapperUInt64 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -191,20 +194,20 @@ public static build.buf.validate.conformance.cases.WrapperUInt64 parseDelimitedF java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -224,7 +227,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -232,7 +235,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.WrapperUInt64} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -241,7 +244,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -254,12 +257,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getValFieldBuilder(); } @@ -316,38 +319,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.WrapperUInt64 re result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.WrapperUInt64) { @@ -414,7 +385,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.UInt64Value val_; - private com.google.protobuf.SingleFieldBuilderV3< + 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) = { ... } @@ -520,11 +491,11 @@ public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { /** * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( getVal(), getParentForChildren(), @@ -533,18 +504,6 @@ public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { } return valBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperUInt64) } 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 index 67a57541..5060bcf6 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64OrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64OrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases; public interface WrapperUInt64OrBuilder extends 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 index 876a0858..bd0b6d5c 100644 --- 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 @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + CustomConstraintsProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,52 +28,52 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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_FieldExpressions_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -142,70 +152,71 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor, new java.lang.String[] { "A", "B", "C", }); internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_descriptor = internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor.getNestedTypes().get(0); internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_descriptor, new java.lang.String[] { }); internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor, new java.lang.String[] { "A", "B", "C", "D", "E", "F", }); internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_descriptor = internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor.getNestedTypes().get(0); internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_descriptor, new java.lang.String[] { "A", "B", }); internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_descriptor, new java.lang.String[] { "A", "B", "C", }); internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_descriptor = internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_descriptor.getNestedTypes().get(0); internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_descriptor, new java.lang.String[] { "A", }); internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor, new java.lang.String[] { "A", }); internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_descriptor, new java.lang.String[] { "A", }); internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_descriptor, new java.lang.String[] { "A", }); internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_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); registry.add(build.buf.validate.ValidateProto.message); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); - build.buf.validate.ValidateProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeError.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeError.java index fae846c3..3498d33a 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeError.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeError.java @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; /** * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.DynRuntimeError} */ public final class DynRuntimeError extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.DynRuntimeError) DynRuntimeErrorOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DynRuntimeError.class.getName()); + } // Use DynRuntimeError.newBuilder() to construct. - private DynRuntimeError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DynRuntimeError(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DynRuntimeError() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.DynRuntime } public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.DynRuntime java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.DynRuntimeError} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError) { @@ -406,18 +377,6 @@ public Builder clearA() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.DynRuntimeError) } 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 index 6d35979b..4e91372d 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface DynRuntimeErrorOrBuilder extends 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 index 2017c3f9..e79b2c25 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; /** @@ -20,6 +21,15 @@ public enum Enum UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Enum.class.getName()); + } /** * ENUM_UNSPECIFIED = 0; */ diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressions.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressions.java index 63748308..042ba914 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressions.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressions.java @@ -1,39 +1,42 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; /** * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressions} */ public final class FieldExpressions extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressions) FieldExpressionsOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FieldExpressions.class.getName()); + } // Use FieldExpressions.newBuilder() to construct. - private FieldExpressions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FieldExpressions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FieldExpressions() { b_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldExpressions(); - } - 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_FieldExpressions_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -54,31 +57,33 @@ public interface NestedOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested} */ public static final class Nested extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested) NestedOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Nested.class.getName()); + } // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Nested() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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_FieldExpressions_Nested_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -195,20 +200,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.FieldExpre } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -216,20 +221,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.FieldExpre java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -249,7 +254,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -257,7 +262,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested) build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.NestedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -266,7 +271,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_Nested_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -279,7 +284,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -326,38 +331,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested) { @@ -452,18 +425,6 @@ public Builder clearA() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested) } @@ -697,20 +658,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.FieldExpre } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -718,20 +679,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.FieldExpre java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -751,7 +712,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -759,7 +720,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressions} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressions) build.buf.validate.conformance.cases.custom_constraints.FieldExpressionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -768,7 +729,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressions_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -781,12 +742,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getCFieldBuilder(); } @@ -851,38 +812,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressions) { @@ -1050,7 +979,7 @@ public Builder clearB() { } private build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested c_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.NestedOrBuilder> cBuilder_; /** * .buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested c = 3 [json_name = "c", (.buf.validate.field) = { ... } @@ -1156,11 +1085,11 @@ public build.buf.validate.conformance.cases.custom_constraints.FieldExpressions. /** * .buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested c = 3 [json_name = "c", (.buf.validate.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.NestedOrBuilder> getCFieldBuilder() { if (cBuilder_ == null) { - cBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cBuilder_ = new com.google.protobuf.SingleFieldBuilder< build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressions.NestedOrBuilder>( getC(), getParentForChildren(), @@ -1169,18 +1098,6 @@ public build.buf.validate.conformance.cases.custom_constraints.FieldExpressions. } return cBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressions) } diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionsOrBuilder.java index a040a6f4..e6b7043e 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionsOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionsOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface FieldExpressionsOrBuilder extends 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 index 1862ed4f..f9d9294c 100644 --- 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 @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + IncorrectType.class.getName()); + } // Use IncorrectType.newBuilder() to construct. - private IncorrectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IncorrectType() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.IncorrectT } public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.IncorrectT java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.IncorrectType} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.IncorrectType) { @@ -406,18 +377,6 @@ public Builder clearA() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.IncorrectType) } 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 index 4e99715b..8634d384 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface IncorrectTypeOrBuilder extends 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 index f1d1c07f..69ccfa0d 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions} */ public final class MessageExpressions extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageExpressions.class.getName()); + } // Use MessageExpressions.newBuilder() to construct. - private MessageExpressions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageExpressions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageExpressions() { @@ -25,20 +35,13 @@ private MessageExpressions() { d_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MessageExpressions(); - } - 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -65,31 +68,33 @@ public interface NestedOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested} */ public static final class Nested extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Nested.class.getName()); + } // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Nested() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -228,20 +233,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.MessageExp } public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -249,20 +254,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.MessageExp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -282,7 +287,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -290,7 +295,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -299,7 +304,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -312,7 +317,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -363,38 +368,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) { @@ -529,18 +502,6 @@ public Builder clearB() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) } @@ -866,20 +827,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.MessageExp } public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -887,20 +848,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.MessageExp java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -920,7 +881,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -932,7 +893,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -941,7 +902,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -954,12 +915,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getEFieldBuilder(); getFFieldBuilder(); @@ -1044,38 +1005,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.MessageExpressions) { @@ -1354,7 +1283,7 @@ public Builder clearD() { } private build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -1460,11 +1389,11 @@ public build.buf.validate.conformance.cases.custom_constraints.MessageExpression /** * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getEFieldBuilder() { if (eBuilder_ == null) { - eBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1475,7 +1404,7 @@ public build.buf.validate.conformance.cases.custom_constraints.MessageExpression } private build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -1581,11 +1510,11 @@ public build.buf.validate.conformance.cases.custom_constraints.MessageExpression /** * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getFFieldBuilder() { if (fBuilder_ == null) { - fBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1594,18 +1523,6 @@ public build.buf.validate.conformance.cases.custom_constraints.MessageExpression } return fBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.MessageExpressions) } 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 index 8c977599..f1ea58fa 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface MessageExpressionsOrBuilder extends 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 index 822512b7..b8352973 100644 --- 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 @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MissingField.class.getName()); + } // Use MissingField.newBuilder() to construct. - private MissingField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MissingField(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MissingField() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -149,20 +152,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.MissingFie } public static build.buf.validate.conformance.cases.custom_constraints.MissingField parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -170,20 +173,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.MissingFie java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -203,7 +206,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -211,7 +214,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MissingField} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -220,7 +223,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -233,7 +236,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -280,38 +283,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.MissingField) { @@ -406,18 +377,6 @@ public Builder clearA() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.MissingField) } 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 index be5da8fe..38b9aec6 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface MissingFieldOrBuilder extends 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 index a18a9d9b..aecf7008 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; /** @@ -12,32 +13,34 @@ * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions} */ public final class NoExpressions extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + NoExpressions.class.getName()); + } // Use NoExpressions.newBuilder() to construct. - private NoExpressions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private NoExpressions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private NoExpressions() { b_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NoExpressions(); - } - 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -52,31 +55,33 @@ public interface NestedOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested} */ public static final class Nested extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Nested.class.getName()); + } // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Nested() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -171,20 +176,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.NoExpressi } public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -192,20 +197,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.NoExpressi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -225,7 +230,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -233,7 +238,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -242,7 +247,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -255,7 +260,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -292,38 +297,6 @@ public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nes return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) { @@ -377,18 +350,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) } @@ -622,20 +583,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.NoExpressi } public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -643,20 +604,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.NoExpressi java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -676,7 +637,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -688,7 +649,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -697,7 +658,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -710,12 +671,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getCFieldBuilder(); } @@ -780,38 +741,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.custom_constrain result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.NoExpressions) { @@ -979,7 +908,7 @@ public Builder clearB() { } private build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c_; - private com.google.protobuf.SingleFieldBuilderV3< + 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"]; @@ -1085,11 +1014,11 @@ public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nes /** * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; */ - private com.google.protobuf.SingleFieldBuilderV3< + 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> getCFieldBuilder() { if (cBuilder_ == null) { - cBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1098,18 +1027,6 @@ public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nes } return cBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.NoExpressions) } 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 index 9bffe9f6..b8f9e945 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface NoExpressionsOrBuilder extends 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 index efd595f9..fae1324e 100644 --- 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 @@ -1,38 +1,41 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + NowEqualsNow.class.getName()); + } // Use NowEqualsNow.newBuilder() to construct. - private NowEqualsNow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private NowEqualsNow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private NowEqualsNow() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -127,20 +130,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsN } public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -148,20 +151,20 @@ public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsN java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -181,7 +184,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -189,7 +192,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NowEqualsNow} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -198,7 +201,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -211,7 +214,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -248,38 +251,6 @@ public build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow buil return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow) { @@ -333,18 +304,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.NowEqualsNow) } 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 index 559497e1..34222c07 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.custom_constraints; public interface NowEqualsNowOrBuilder extends 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 index c7264a1e..3344637e 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.other_package; /** @@ -12,31 +13,33 @@ * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed} */ public final class Embed extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Embed.class.getName()); + } // Use Embed.newBuilder() to construct. - private Embed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Embed(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Embed() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -59,6 +62,15 @@ public enum Enumerated UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Enumerated.class.getName()); + } /** * ENUMERATED_UNSPECIFIED = 0; */ @@ -159,31 +171,33 @@ public interface DoubleEmbedOrBuilder extends * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed.DoubleEmbed} */ public static final class DoubleEmbed extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleEmbed.class.getName()); + } // Use DoubleEmbed.newBuilder() to construct. - private DoubleEmbed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleEmbed(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleEmbed() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -206,6 +220,15 @@ public enum DoubleEnumerated UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleEnumerated.class.getName()); + } /** * DOUBLE_ENUMERATED_UNSPECIFIED = 0; */ @@ -386,20 +409,20 @@ public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmb } public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -407,20 +430,20 @@ public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmb java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -440,7 +463,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -448,7 +471,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed.DoubleEmbed} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -457,7 +480,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -470,7 +493,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -507,38 +530,6 @@ public build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed buil return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) { @@ -592,18 +583,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) } @@ -767,20 +746,20 @@ public static build.buf.validate.conformance.cases.other_package.Embed parseFrom } public static build.buf.validate.conformance.cases.other_package.Embed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -788,20 +767,20 @@ public static build.buf.validate.conformance.cases.other_package.Embed parseDeli java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -821,7 +800,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -833,7 +812,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -842,7 +821,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -855,7 +834,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -902,38 +881,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.other_package.Em } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.other_package.Embed) { @@ -1028,18 +975,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.other_package.Embed) } 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 index a798d8ff..4b8552d7 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.other_package; public interface EmbedOrBuilder extends 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 index c847e36e..6042b57e 100644 --- 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 @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EmbedProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,12 +28,12 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -59,21 +69,22 @@ public static void registerAllExtensions( 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.GeneratedMessageV3.FieldAccessorTable( + 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.GeneratedMessageV3.FieldAccessorTable( + 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); - build.buf.validate.ValidateProto.getDescriptor(); } // @@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 index dc0daf41..95511b3e 100644 --- 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 @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + InSubdirectoryProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -41,6 +51,7 @@ public static void registerAllExtensions( new com.google.protobuf.Descriptors.FileDescriptor[] { build.buf.validate.ValidateProto.getDescriptor(), }); + descriptor.resolveAllFeaturesImmutable(); build.buf.validate.ValidateProto.getDescriptor(); } 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 index fbce233d..2df79da9 100644 --- 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 @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.yet_another_package; /** @@ -12,31 +13,33 @@ * Protobuf type {@code buf.validate.conformance.cases.yet_another_package.Embed} */ public final class Embed extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Embed.class.getName()); + } // Use Embed.newBuilder() to construct. - private Embed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Embed(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Embed() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + 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( @@ -59,6 +62,15 @@ public enum Enumerated UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Enumerated.class.getName()); + } /** * ENUMERATED_UNSPECIFIED = 0; */ @@ -262,20 +274,20 @@ public static build.buf.validate.conformance.cases.yet_another_package.Embed par } public static build.buf.validate.conformance.cases.yet_another_package.Embed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -283,20 +295,20 @@ public static build.buf.validate.conformance.cases.yet_another_package.Embed par java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -316,7 +328,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -328,7 +340,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.cases.yet_another_package.Embed} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -337,7 +349,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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( @@ -350,7 +362,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -397,38 +409,6 @@ private void buildPartial0(build.buf.validate.conformance.cases.yet_another_pack } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.cases.yet_another_package.Embed) { @@ -523,18 +503,6 @@ public Builder clearVal() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.yet_another_package.Embed) } 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 index 411428fe..acf8558c 100644 --- 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 @@ -1,11 +1,21 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Embed2Proto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,7 +28,7 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_conformance_cases_yet_another_package_Embed_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_conformance_cases_yet_another_package_Embed_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -52,15 +62,16 @@ public static void registerAllExtensions( internal_static_buf_validate_conformance_cases_yet_another_package_Embed_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_conformance_cases_yet_another_package_Embed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_conformance_cases_yet_another_package_Embed_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); - 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/EmbedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/EmbedOrBuilder.java index 8e30006e..913b59b8 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/EmbedOrBuilder.java +++ b/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/EmbedOrBuilder.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.cases.yet_another_package; public interface EmbedOrBuilder extends 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 index ed45d958..728810c9 100644 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResult.java +++ b/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResult.java @@ -1,7 +1,8 @@ // 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.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.conformance.harness; /** @@ -12,32 +13,34 @@ * Protobuf type {@code buf.validate.conformance.harness.CaseResult} */ public final class CaseResult extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + CaseResult.class.getName()); + } // Use CaseResult.newBuilder() to construct. - private CaseResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CaseResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CaseResult() { name_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CaseResult(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -250,8 +253,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (success_ != false) { output.writeBool(2, success_); @@ -277,8 +280,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (success_ != false) { size += com.google.protobuf.CodedOutputStream @@ -406,20 +409,20 @@ public static build.buf.validate.conformance.harness.CaseResult parseFrom( } public static build.buf.validate.conformance.harness.CaseResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -427,20 +430,20 @@ public static build.buf.validate.conformance.harness.CaseResult parseDelimitedFr java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -460,7 +463,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -472,7 +475,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.conformance.harness.CaseResult} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -481,7 +484,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -494,12 +497,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getWantedFieldBuilder(); getGotFieldBuilder(); @@ -592,38 +595,6 @@ private void buildPartial0(build.buf.validate.conformance.harness.CaseResult res result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.conformance.harness.CaseResult) { @@ -872,7 +843,7 @@ public Builder clearSuccess() { } private build.buf.validate.conformance.harness.TestResult wanted_; - private com.google.protobuf.SingleFieldBuilderV3< + 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_; /** *
@@ -1014,11 +985,11 @@ public build.buf.validate.conformance.harness.TestResultOrBuilder getWantedOrBui
      *
      * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder> 
         getWantedFieldBuilder() {
       if (wantedBuilder_ == null) {
-        wantedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -1029,7 +1000,7 @@ public build.buf.validate.conformance.harness.TestResultOrBuilder getWantedOrBui
     }
 
     private build.buf.validate.conformance.harness.TestResult got_;
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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_;
     /**
      * 
@@ -1171,11 +1142,11 @@ public build.buf.validate.conformance.harness.TestResultOrBuilder getGotOrBuilde
      *
      * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder> 
         getGotFieldBuilder() {
       if (gotBuilder_ == null) {
-        gotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -1186,7 +1157,7 @@ public build.buf.validate.conformance.harness.TestResultOrBuilder getGotOrBuilde
     }
 
     private com.google.protobuf.Any input_;
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> inputBuilder_;
     /**
      * 
@@ -1328,11 +1299,11 @@ public com.google.protobuf.AnyOrBuilder getInputOrBuilder() {
      *
      * .google.protobuf.Any input = 5 [json_name = "input"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
         getInputFieldBuilder() {
       if (inputBuilder_ == null) {
-        inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        inputBuilder_ = new com.google.protobuf.SingleFieldBuilder<
             com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
                 getInput(),
                 getParentForChildren(),
@@ -1385,18 +1356,6 @@ public Builder clearExpectedFailure() {
       onChanged();
       return this;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.CaseResult)
   }
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
index c87b56a9..a0d8f4ca 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResultOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResultOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface CaseResultOrBuilder extends
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
index 59ba93a1..647bfa66 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/HarnessProto.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/HarnessProto.java
@@ -1,11 +1,21 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      HarnessProto.class.getName());
+  }
   public static void registerAllExtensions(
       com.google.protobuf.ExtensionRegistryLite registry) {
   }
@@ -18,27 +28,27 @@ public static void registerAllExtensions(
   static final com.google.protobuf.Descriptors.Descriptor
     internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor;
   static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable;
 
   public static com.google.protobuf.Descriptors.FileDescriptor
@@ -89,33 +99,34 @@ public static void registerAllExtensions(
     internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor =
       getDescriptor().getMessageTypes().get(0);
     internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+      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.GeneratedMessageV3.FieldAccessorTable(
+      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.GeneratedMessageV3.FieldAccessorTable(
+      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.GeneratedMessageV3.FieldAccessorTable(
+      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.GeneratedMessageV3.FieldAccessorTable(
+      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.ExpressionProto.getDescriptor();
     com.google.protobuf.AnyProto.getDescriptor();
     com.google.protobuf.DescriptorProtos.getDescriptor();
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
index f600127a..0d60d9c9 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptions.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptions.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 /**
@@ -13,12 +14,21 @@
  * Protobuf type {@code buf.validate.conformance.harness.ResultOptions}
  */
 public final class ResultOptions extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      ResultOptions.class.getName());
+  }
   // Use ResultOptions.newBuilder() to construct.
-  private ResultOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ResultOptions(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private ResultOptions() {
@@ -26,20 +36,13 @@ private ResultOptions() {
     caseFilter_ = "";
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new ResultOptions();
-  }
-
   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.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -214,11 +217,11 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suiteFilter_)) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suiteFilter_);
+    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suiteFilter_)) {
+      com.google.protobuf.GeneratedMessage.writeString(output, 1, suiteFilter_);
     }
-    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caseFilter_)) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, caseFilter_);
+    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caseFilter_)) {
+      com.google.protobuf.GeneratedMessage.writeString(output, 2, caseFilter_);
     }
     if (verbose_ != false) {
       output.writeBool(3, verbose_);
@@ -241,11 +244,11 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suiteFilter_)) {
-      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, suiteFilter_);
+    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suiteFilter_)) {
+      size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suiteFilter_);
     }
-    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caseFilter_)) {
-      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caseFilter_);
+    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caseFilter_)) {
+      size += com.google.protobuf.GeneratedMessage.computeStringSize(2, caseFilter_);
     }
     if (verbose_ != false) {
       size += com.google.protobuf.CodedOutputStream
@@ -356,20 +359,20 @@ public static build.buf.validate.conformance.harness.ResultOptions parseFrom(
   }
   public static build.buf.validate.conformance.harness.ResultOptions parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseDelimitedWithIOException(PARSER, input);
   }
 
@@ -377,20 +380,20 @@ public static build.buf.validate.conformance.harness.ResultOptions parseDelimite
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
@@ -410,7 +413,7 @@ public Builder toBuilder() {
 
   @java.lang.Override
   protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
@@ -423,7 +426,7 @@ protected Builder newBuilderForType(
    * Protobuf type {@code buf.validate.conformance.harness.ResultOptions}
    */
   public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+      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
@@ -432,7 +435,7 @@ public static final class Builder extends
     }
 
     @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
@@ -445,7 +448,7 @@ private Builder() {
     }
 
     private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
       super(parent);
 
     }
@@ -512,38 +515,6 @@ private void buildPartial0(build.buf.validate.conformance.harness.ResultOptions
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof build.buf.validate.conformance.harness.ResultOptions) {
@@ -1010,18 +981,6 @@ public Builder clearStrictError() {
       onChanged();
       return this;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.ResultOptions)
   }
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
index a994e6e6..85008185 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptionsOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptionsOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface ResultOptionsOrBuilder extends
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
index 39349452..85454f39 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSet.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSet.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 /**
@@ -12,32 +13,34 @@
  * Protobuf type {@code buf.validate.conformance.harness.ResultSet}
  */
 public final class ResultSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      ResultSet.class.getName());
+  }
   // Use ResultSet.newBuilder() to construct.
-  private ResultSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ResultSet(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private ResultSet() {
     suites_ = java.util.Collections.emptyList();
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new ResultSet();
-  }
-
   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.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -345,20 +348,20 @@ public static build.buf.validate.conformance.harness.ResultSet parseFrom(
   }
   public static build.buf.validate.conformance.harness.ResultSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseDelimitedWithIOException(PARSER, input);
   }
 
@@ -366,20 +369,20 @@ public static build.buf.validate.conformance.harness.ResultSet parseDelimitedFro
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
@@ -399,7 +402,7 @@ public Builder toBuilder() {
 
   @java.lang.Override
   protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
@@ -411,7 +414,7 @@ protected Builder newBuilderForType(
    * Protobuf type {@code buf.validate.conformance.harness.ResultSet}
    */
   public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+      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
@@ -420,7 +423,7 @@ public static final class Builder extends
     }
 
     @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
@@ -433,12 +436,12 @@ private Builder() {
     }
 
     private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
+      if (com.google.protobuf.GeneratedMessage
               .alwaysUseFieldBuilders) {
         getSuitesFieldBuilder();
         getOptionsFieldBuilder();
@@ -528,38 +531,6 @@ private void buildPartial0(build.buf.validate.conformance.harness.ResultSet resu
       result.bitField0_ |= to_bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof build.buf.validate.conformance.harness.ResultSet) {
@@ -597,7 +568,7 @@ public Builder mergeFrom(build.buf.validate.conformance.harness.ResultSet other)
             suites_ = other.suites_;
             bitField0_ = (bitField0_ & ~0x00000004);
             suitesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                  getSuitesFieldBuilder() : null;
           } else {
             suitesBuilder_.addAllMessages(other.suites_);
@@ -790,7 +761,7 @@ private void ensureSuitesIsMutable() {
        }
     }
 
-    private com.google.protobuf.RepeatedFieldBuilderV3<
+    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_;
 
     /**
@@ -1078,11 +1049,11 @@ public build.buf.validate.conformance.harness.SuiteResults.Builder addSuitesBuil
          getSuitesBuilderList() {
       return getSuitesFieldBuilder().getBuilderList();
     }
-    private com.google.protobuf.RepeatedFieldBuilderV3<
+    private com.google.protobuf.RepeatedFieldBuilder<
         build.buf.validate.conformance.harness.SuiteResults, build.buf.validate.conformance.harness.SuiteResults.Builder, build.buf.validate.conformance.harness.SuiteResultsOrBuilder> 
         getSuitesFieldBuilder() {
       if (suitesBuilder_ == null) {
-        suitesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+        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),
@@ -1094,7 +1065,7 @@ public build.buf.validate.conformance.harness.SuiteResults.Builder addSuitesBuil
     }
 
     private build.buf.validate.conformance.harness.ResultOptions options_;
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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_;
     /**
      * 
@@ -1236,11 +1207,11 @@ public build.buf.validate.conformance.harness.ResultOptionsOrBuilder getOptionsO
      *
      * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.conformance.harness.ResultOptions, build.buf.validate.conformance.harness.ResultOptions.Builder, build.buf.validate.conformance.harness.ResultOptionsOrBuilder> 
         getOptionsFieldBuilder() {
       if (optionsBuilder_ == null) {
-        optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -1293,18 +1264,6 @@ public Builder clearExpectedFailures() {
       onChanged();
       return this;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.ResultSet)
   }
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
index e362265c..9d679f3b 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSetOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSetOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface ResultSetOrBuilder extends
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
index 75797d09..ffadcefb 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultsProto.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultsProto.java
@@ -1,11 +1,21 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      ResultsProto.class.getName());
+  }
   public static void registerAllExtensions(
       com.google.protobuf.ExtensionRegistryLite registry) {
   }
@@ -18,22 +28,22 @@ public static void registerAllExtensions(
   static final com.google.protobuf.Descriptors.Descriptor
     internal_static_buf_validate_conformance_harness_ResultOptions_descriptor;
   static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    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.GeneratedMessageV3.FieldAccessorTable
+    com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable;
 
   public static com.google.protobuf.Descriptors.FileDescriptor
@@ -92,27 +102,28 @@ public static void registerAllExtensions(
     internal_static_buf_validate_conformance_harness_ResultOptions_descriptor =
       getDescriptor().getMessageTypes().get(0);
     internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
         internal_static_buf_validate_conformance_harness_ResultOptions_descriptor,
         new java.lang.String[] { "SuiteFilter", "CaseFilter", "Verbose", "Strict", "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.GeneratedMessageV3.FieldAccessorTable(
+      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.GeneratedMessageV3.FieldAccessorTable(
+      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.GeneratedMessageV3.FieldAccessorTable(
+      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();
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
index 7765d076..15e7c552 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResults.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResults.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 /**
@@ -12,12 +13,21 @@
  * Protobuf type {@code buf.validate.conformance.harness.SuiteResults}
  */
 public final class SuiteResults extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      SuiteResults.class.getName());
+  }
   // Use SuiteResults.newBuilder() to construct.
-  private SuiteResults(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private SuiteResults(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private SuiteResults() {
@@ -25,20 +35,13 @@ private SuiteResults() {
     cases_ = java.util.Collections.emptyList();
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new SuiteResults();
-  }
-
   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.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -257,8 +260,8 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+      com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
     }
     if (successes_ != 0) {
       output.writeInt32(2, successes_);
@@ -284,8 +287,8 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
-      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+      size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
     }
     if (successes_ != 0) {
       size += com.google.protobuf.CodedOutputStream
@@ -403,20 +406,20 @@ public static build.buf.validate.conformance.harness.SuiteResults parseFrom(
   }
   public static build.buf.validate.conformance.harness.SuiteResults parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseDelimitedWithIOException(PARSER, input);
   }
 
@@ -424,20 +427,20 @@ public static build.buf.validate.conformance.harness.SuiteResults parseDelimited
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
@@ -457,7 +460,7 @@ public Builder toBuilder() {
 
   @java.lang.Override
   protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
@@ -469,7 +472,7 @@ protected Builder newBuilderForType(
    * Protobuf type {@code buf.validate.conformance.harness.SuiteResults}
    */
   public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+      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
@@ -478,7 +481,7 @@ public static final class Builder extends
     }
 
     @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
@@ -491,12 +494,12 @@ private Builder() {
     }
 
     private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
+      if (com.google.protobuf.GeneratedMessage
               .alwaysUseFieldBuilders) {
         getCasesFieldBuilder();
         getFdsetFieldBuilder();
@@ -590,38 +593,6 @@ private void buildPartial0(build.buf.validate.conformance.harness.SuiteResults r
       result.bitField0_ |= to_bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof build.buf.validate.conformance.harness.SuiteResults) {
@@ -664,7 +635,7 @@ public Builder mergeFrom(build.buf.validate.conformance.harness.SuiteResults oth
             cases_ = other.cases_;
             bitField0_ = (bitField0_ & ~0x00000008);
             casesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                  getCasesFieldBuilder() : null;
           } else {
             casesBuilder_.addAllMessages(other.cases_);
@@ -954,7 +925,7 @@ private void ensureCasesIsMutable() {
        }
     }
 
-    private com.google.protobuf.RepeatedFieldBuilderV3<
+    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_;
 
     /**
@@ -1242,11 +1213,11 @@ public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder
          getCasesBuilderList() {
       return getCasesFieldBuilder().getBuilderList();
     }
-    private com.google.protobuf.RepeatedFieldBuilderV3<
+    private com.google.protobuf.RepeatedFieldBuilder<
         build.buf.validate.conformance.harness.CaseResult, build.buf.validate.conformance.harness.CaseResult.Builder, build.buf.validate.conformance.harness.CaseResultOrBuilder> 
         getCasesFieldBuilder() {
       if (casesBuilder_ == null) {
-        casesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+        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),
@@ -1258,7 +1229,7 @@ public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder
     }
 
     private com.google.protobuf.DescriptorProtos.FileDescriptorSet fdset_;
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> fdsetBuilder_;
     /**
      * 
@@ -1400,11 +1371,11 @@ public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetO
      *
      * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> 
         getFdsetFieldBuilder() {
       if (fdsetBuilder_ == null) {
-        fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
             com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(
                 getFdset(),
                 getParentForChildren(),
@@ -1457,18 +1428,6 @@ public Builder clearExpectedFailures() {
       onChanged();
       return this;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.SuiteResults)
   }
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
index 89bc1b95..0729e75f 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResultsOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResultsOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface SuiteResultsOrBuilder extends
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
index a9b76b50..d107ca26 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequest.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequest.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 /**
@@ -14,24 +15,26 @@
  * Protobuf type {@code buf.validate.conformance.harness.TestConformanceRequest}
  */
 public final class TestConformanceRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      TestConformanceRequest.class.getName());
+  }
   // Use TestConformanceRequest.newBuilder() to construct.
-  private TestConformanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private TestConformanceRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private TestConformanceRequest() {
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new 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;
@@ -50,7 +53,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
     }
   }
   @java.lang.Override
-  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -186,7 +189,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(2, getFdset());
     }
-    com.google.protobuf.GeneratedMessageV3
+    com.google.protobuf.GeneratedMessage
       .serializeStringMapTo(
         output,
         internalGetCases(),
@@ -295,20 +298,20 @@ public static build.buf.validate.conformance.harness.TestConformanceRequest pars
   }
   public static build.buf.validate.conformance.harness.TestConformanceRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseDelimitedWithIOException(PARSER, input);
   }
 
@@ -316,20 +319,20 @@ public static build.buf.validate.conformance.harness.TestConformanceRequest pars
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
@@ -349,7 +352,7 @@ public Builder toBuilder() {
 
   @java.lang.Override
   protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
@@ -363,7 +366,7 @@ protected Builder newBuilderForType(
    * Protobuf type {@code buf.validate.conformance.harness.TestConformanceRequest}
    */
   public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+      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
@@ -394,7 +397,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
       }
     }
     @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
@@ -407,12 +410,12 @@ private Builder() {
     }
 
     private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
+      if (com.google.protobuf.GeneratedMessage
               .alwaysUseFieldBuilders) {
         getFdsetFieldBuilder();
       }
@@ -473,38 +476,6 @@ private void buildPartial0(build.buf.validate.conformance.harness.TestConformanc
       result.bitField0_ |= to_bitField0_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof build.buf.validate.conformance.harness.TestConformanceRequest) {
@@ -588,7 +559,7 @@ public Builder mergeFrom(
     private int bitField0_;
 
     private com.google.protobuf.DescriptorProtos.FileDescriptorSet fdset_;
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -694,11 +665,11 @@ public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetO
     /**
      * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> 
         getFdsetFieldBuilder() {
       if (fdsetBuilder_ == null) {
-        fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
             com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(
                 getFdset(),
                 getParentForChildren(),
@@ -862,18 +833,6 @@ public com.google.protobuf.Any.Builder putCasesBuilderIfAbsent(
       }
       return (com.google.protobuf.Any.Builder) entry;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.TestConformanceRequest)
   }
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
index 51f17751..19fddac9 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequestOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequestOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface TestConformanceRequestOrBuilder extends
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
index ae2defea..b1e5adec 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponse.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponse.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 /**
@@ -13,24 +14,26 @@
  * Protobuf type {@code buf.validate.conformance.harness.TestConformanceResponse}
  */
 public final class TestConformanceResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      TestConformanceResponse.class.getName());
+  }
   // Use TestConformanceResponse.newBuilder() to construct.
-  private TestConformanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private TestConformanceResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private TestConformanceResponse() {
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new 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;
@@ -49,7 +52,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
     }
   }
   @java.lang.Override
-  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -149,7 +152,7 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
+    com.google.protobuf.GeneratedMessage
       .serializeStringMapTo(
         output,
         internalGetResults(),
@@ -245,20 +248,20 @@ public static build.buf.validate.conformance.harness.TestConformanceResponse par
   }
   public static build.buf.validate.conformance.harness.TestConformanceResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseDelimitedWithIOException(PARSER, input);
   }
 
@@ -266,20 +269,20 @@ public static build.buf.validate.conformance.harness.TestConformanceResponse par
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
@@ -299,7 +302,7 @@ public Builder toBuilder() {
 
   @java.lang.Override
   protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
@@ -312,7 +315,7 @@ protected Builder newBuilderForType(
    * Protobuf type {@code buf.validate.conformance.harness.TestConformanceResponse}
    */
   public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+      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
@@ -343,7 +346,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
       }
     }
     @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
@@ -356,7 +359,7 @@ private Builder() {
     }
 
     private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
       super(parent);
 
     }
@@ -403,38 +406,6 @@ private void buildPartial0(build.buf.validate.conformance.harness.TestConformanc
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof build.buf.validate.conformance.harness.TestConformanceResponse) {
@@ -656,18 +627,6 @@ public build.buf.validate.conformance.harness.TestResult.Builder putResultsBuild
       }
       return (build.buf.validate.conformance.harness.TestResult.Builder) entry;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.TestConformanceResponse)
   }
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
index beabc455..7110c01d 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponseOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponseOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface TestConformanceResponseOrBuilder extends
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
index f62ac03b..e0e8621b 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestResult.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/TestResult.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 /**
@@ -12,31 +13,33 @@
  * Protobuf type {@code buf.validate.conformance.harness.TestResult}
  */
 public final class TestResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      TestResult.class.getName());
+  }
   // Use TestResult.newBuilder() to construct.
-  private TestResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private TestResult(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private TestResult() {
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new 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.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -377,13 +380,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeMessage(2, (build.buf.validate.Violations) result_);
     }
     if (resultCase_ == 3) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, result_);
+      com.google.protobuf.GeneratedMessage.writeString(output, 3, result_);
     }
     if (resultCase_ == 4) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, result_);
+      com.google.protobuf.GeneratedMessage.writeString(output, 4, result_);
     }
     if (resultCase_ == 5) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, result_);
+      com.google.protobuf.GeneratedMessage.writeString(output, 5, result_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -404,13 +407,13 @@ public int getSerializedSize() {
         .computeMessageSize(2, (build.buf.validate.Violations) result_);
     }
     if (resultCase_ == 3) {
-      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, result_);
+      size += com.google.protobuf.GeneratedMessage.computeStringSize(3, result_);
     }
     if (resultCase_ == 4) {
-      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, result_);
+      size += com.google.protobuf.GeneratedMessage.computeStringSize(4, result_);
     }
     if (resultCase_ == 5) {
-      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, result_);
+      size += com.google.protobuf.GeneratedMessage.computeStringSize(5, result_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -527,20 +530,20 @@ public static build.buf.validate.conformance.harness.TestResult parseFrom(
   }
   public static build.buf.validate.conformance.harness.TestResult parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseDelimitedWithIOException(PARSER, input);
   }
 
@@ -548,20 +551,20 @@ public static build.buf.validate.conformance.harness.TestResult parseDelimitedFr
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
+    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.GeneratedMessageV3
+    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.GeneratedMessageV3
+    return com.google.protobuf.GeneratedMessage
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
@@ -581,7 +584,7 @@ public Builder toBuilder() {
 
   @java.lang.Override
   protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
@@ -593,7 +596,7 @@ protected Builder newBuilderForType(
    * Protobuf type {@code buf.validate.conformance.harness.TestResult}
    */
   public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+      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
@@ -602,7 +605,7 @@ public static final class Builder extends
     }
 
     @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
         internalGetFieldAccessorTable() {
       return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
@@ -615,7 +618,7 @@ private Builder() {
     }
 
     private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
       super(parent);
 
     }
@@ -673,38 +676,6 @@ private void buildPartialOneofs(build.buf.validate.conformance.harness.TestResul
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.setField(field, value);
-    }
-    @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-    @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof build.buf.validate.conformance.harness.TestResult) {
@@ -894,7 +865,7 @@ public Builder clearSuccess() {
       return this;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.Violations, build.buf.validate.Violations.Builder, build.buf.validate.ViolationsOrBuilder> validationErrorBuilder_;
     /**
      * 
@@ -1053,14 +1024,14 @@ public build.buf.validate.ViolationsOrBuilder getValidationErrorOrBuilder() {
      *
      * .buf.validate.Violations validation_error = 2 [json_name = "validationError"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.Violations, build.buf.validate.Violations.Builder, build.buf.validate.ViolationsOrBuilder> 
         getValidationErrorFieldBuilder() {
       if (validationErrorBuilder_ == null) {
         if (!(resultCase_ == 2)) {
           result_ = build.buf.validate.Violations.getDefaultInstance();
         }
-        validationErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -1422,18 +1393,6 @@ public Builder setUnexpectedErrorBytes(
       onChanged();
       return this;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.TestResult)
   }
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
index 218910f5..b0718eb1 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestResultOrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/harness/TestResultOrBuilder.java
@@ -1,7 +1,8 @@
 // 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.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate.conformance.harness;
 
 public interface TestResultOrBuilder extends
diff --git a/gradle.properties b/gradle.properties
index 12cfe942..ea9eade8 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,5 +1,5 @@
 # Version of buf.build/bufbuild/protovalidate to use.
-protovalidate.version = v0.6.4
+protovalidate.version = v0.7.1
 
 # Arguments to the protovalidate-conformance CLI
 protovalidate.conformance.args = --strict_message --strict_error
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index c6d1404a..5f5135c6 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -1,7 +1,7 @@
 [versions]
 assertj = "3.26.3"
 buf = "1.36.0"
-cel = "0.4.5"
+cel = "0.5.0"
 ipaddress = "5.5.0"
 junit = "5.10.3"
 maven-publish = "0.29.0"
@@ -10,7 +10,7 @@ maven-publish = "0.29.0"
 # - conformance/buf.gen.yaml
 # - src/test/resources/proto/buf.gen.imports.yaml
 # - src/test/resources/proto/buf.gen.noimports.yaml
-protobuf = "3.25.3"
+protobuf = "4.27.3"
 
 [libraries]
 assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" }
diff --git a/src/main/java/build/buf/protovalidate/internal/constraints/DescriptorMappings.java b/src/main/java/build/buf/protovalidate/internal/constraints/DescriptorMappings.java
index 4d4ad09e..9866bcb6 100644
--- a/src/main/java/build/buf/protovalidate/internal/constraints/DescriptorMappings.java
+++ b/src/main/java/build/buf/protovalidate/internal/constraints/DescriptorMappings.java
@@ -206,7 +206,7 @@ static Type getCELType(FieldDescriptor fieldDescriptor, boolean forItems) {
       }
     }
 
-    if (fieldDescriptor.getType() == FieldDescriptor.Type.MESSAGE) {
+    if (fieldDescriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE) {
       String fqn = fieldDescriptor.getMessageType().getFullName();
       switch (fqn) {
         case "google.protobuf.Any":
diff --git a/src/main/java/build/buf/protovalidate/internal/evaluator/EvaluatorBuilder.java b/src/main/java/build/buf/protovalidate/internal/evaluator/EvaluatorBuilder.java
index 162f2c57..30da6527 100644
--- a/src/main/java/build/buf/protovalidate/internal/evaluator/EvaluatorBuilder.java
+++ b/src/main/java/build/buf/protovalidate/internal/evaluator/EvaluatorBuilder.java
@@ -357,7 +357,7 @@ private void processFieldExpressions(
         return;
       }
       List opts;
-      if (fieldDescriptor.getType() == FieldDescriptor.Type.MESSAGE) {
+      if (fieldDescriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE) {
         try {
           DynamicMessage defaultInstance =
               DynamicMessage.parseFrom(
@@ -393,7 +393,7 @@ private void processEmbeddedMessage(
         boolean forItems,
         ValueEvaluator valueEvaluatorEval)
         throws CompilationException {
-      if (fieldDescriptor.getType() != FieldDescriptor.Type.MESSAGE
+      if (fieldDescriptor.getJavaType() != FieldDescriptor.JavaType.MESSAGE
           || shouldSkip(fieldConstraints)
           || fieldDescriptor.isMapField()
           || (fieldDescriptor.isRepeated() && !forItems)) {
@@ -409,7 +409,7 @@ private void processWrapperConstraints(
         boolean forItems,
         ValueEvaluator valueEvaluatorEval)
         throws CompilationException {
-      if (fieldDescriptor.getType() != FieldDescriptor.Type.MESSAGE
+      if (fieldDescriptor.getJavaType() != FieldDescriptor.JavaType.MESSAGE
           || shouldSkip(fieldConstraints)
           || fieldDescriptor.isMapField()
           || (fieldDescriptor.isRepeated() && !forItems)) {
@@ -451,7 +451,7 @@ private void processAnyConstraints(
         boolean forItems,
         ValueEvaluator valueEvaluatorEval) {
       if ((fieldDescriptor.isRepeated() && !forItems)
-          || fieldDescriptor.getType() != FieldDescriptor.Type.MESSAGE
+          || fieldDescriptor.getJavaType() != FieldDescriptor.JavaType.MESSAGE
           || !fieldDescriptor.getMessageType().getFullName().equals("google.protobuf.Any")) {
         return;
       }
diff --git a/src/main/java/build/buf/protovalidate/internal/evaluator/ObjectValue.java b/src/main/java/build/buf/protovalidate/internal/evaluator/ObjectValue.java
index a3d12889..7390375a 100644
--- a/src/main/java/build/buf/protovalidate/internal/evaluator/ObjectValue.java
+++ b/src/main/java/build/buf/protovalidate/internal/evaluator/ObjectValue.java
@@ -53,7 +53,7 @@ public final class ObjectValue implements Value {
   @Nullable
   @Override
   public Message messageValue() {
-    if (fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.MESSAGE) {
+    if (fieldDescriptor.getJavaType() == Descriptors.FieldDescriptor.JavaType.MESSAGE) {
       return (Message) value;
     }
     return null;
diff --git a/src/main/java/build/buf/validate/AnyRules.java b/src/main/java/build/buf/validate/AnyRules.java
index b80ed443..f79a1d73 100644
--- a/src/main/java/build/buf/validate/AnyRules.java
+++ b/src/main/java/build/buf/validate/AnyRules.java
@@ -1,7 +1,8 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
 // source: buf/validate/validate.proto
+// Protobuf Java Version: 4.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate;
 
 /**
@@ -12,12 +13,21 @@
  * Protobuf type {@code buf.validate.AnyRules}
  */
 public final class AnyRules extends
-    com.google.protobuf.GeneratedMessageV3 implements
+    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= */ 27,
+      /* patch= */ 3,
+      /* suffix= */ "",
+      AnyRules.class.getName());
+  }
   // Use AnyRules.newBuilder() to construct.
-  private AnyRules(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AnyRules(com.google.protobuf.GeneratedMessage.Builder builder) {
     super(builder);
   }
   private AnyRules() {
@@ -27,20 +37,13 @@ private AnyRules() {
         com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
-  @java.lang.Override
-  @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
-    return new AnyRules();
-  }
-
   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.GeneratedMessageV3.FieldAccessorTable
+  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internalGetFieldAccessorTable() {
     return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
@@ -54,13 +57,13 @@ protected java.lang.Object newInstance(
   /**
    * 
    * `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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -75,13 +78,13 @@ protected java.lang.Object newInstance( /** *
    * `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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -95,13 +98,13 @@ public 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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -116,13 +119,13 @@ public 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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -146,8 +149,8 @@ public java.lang.String getIn(int index) { * * ```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"]]; + * // 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"]]; * } * ``` *
@@ -165,8 +168,8 @@ public java.lang.String getIn(int index) { * * ```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"]]; + * // 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"]]; * } * ``` *
@@ -183,8 +186,8 @@ public int getNotInCount() { * * ```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"]]; + * // 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"]]; * } * ``` *
@@ -202,8 +205,8 @@ public java.lang.String getNotIn(int index) { * * ```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"]]; + * // 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"]]; * } * ``` *
@@ -232,10 +235,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < in_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, in_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 2, in_.getRaw(i)); } for (int i = 0; i < notIn_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, notIn_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 3, notIn_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -339,20 +342,20 @@ public static build.buf.validate.AnyRules parseFrom( } public static build.buf.validate.AnyRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -360,20 +363,20 @@ public static build.buf.validate.AnyRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -393,7 +396,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -405,7 +408,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.AnyRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -414,7 +417,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -427,7 +430,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -482,38 +485,6 @@ private void buildPartial0(build.buf.validate.AnyRules result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.AnyRules) { @@ -612,13 +583,13 @@ private void ensureInIsMutable() { /** *
      * `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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -634,13 +605,13 @@ private void ensureInIsMutable() { /** *
      * `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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -654,13 +625,13 @@ public 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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -675,13 +646,13 @@ public 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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -697,13 +668,13 @@ public 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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -725,13 +696,13 @@ public Builder setIn( /** *
      * `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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -752,13 +723,13 @@ public Builder addIn( /** *
      * `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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -779,13 +750,13 @@ public Builder addAllIn( /** *
      * `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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -803,13 +774,13 @@ public Builder clearIn() { /** *
      * `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
+     * 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"]];
+     * //  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"]];
      * }
      * ```
      * 
@@ -843,8 +814,8 @@ private void ensureNotInIsMutable() { * * ```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"]]; + * // 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"]]; * } * ``` *
@@ -863,8 +834,8 @@ private void ensureNotInIsMutable() { * * ```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"]]; + * // 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"]]; * } * ``` *
@@ -881,8 +852,8 @@ public int getNotInCount() { * * ```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"]]; + * // 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"]]; * } * ``` * @@ -900,8 +871,8 @@ public java.lang.String getNotIn(int index) { * * ```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"]]; + * // 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"]]; * } * ``` * @@ -920,8 +891,8 @@ public java.lang.String getNotIn(int index) { * * ```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"]]; + * // 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"]]; * } * ``` * @@ -946,8 +917,8 @@ public Builder setNotIn( * * ```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"]]; + * // 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"]]; * } * ``` * @@ -971,8 +942,8 @@ public Builder addNotIn( * * ```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"]]; + * // 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"]]; * } * ``` * @@ -996,8 +967,8 @@ public Builder addAllNotIn( * * ```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"]]; + * // 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"]]; * } * ``` * @@ -1018,8 +989,8 @@ public Builder clearNotIn() { * * ```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"]]; + * // 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"]]; * } * ``` * @@ -1038,18 +1009,6 @@ public Builder addNotInBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.AnyRules) } diff --git a/src/main/java/build/buf/validate/AnyRulesOrBuilder.java b/src/main/java/build/buf/validate/AnyRulesOrBuilder.java index 27188ddd..fdb8128a 100644 --- a/src/main/java/build/buf/validate/AnyRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/AnyRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface AnyRulesOrBuilder extends @@ -11,13 +12,13 @@ public interface AnyRulesOrBuilder extends /** *
    * `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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -30,13 +31,13 @@ public interface AnyRulesOrBuilder extends /** *
    * `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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -48,13 +49,13 @@ public interface AnyRulesOrBuilder extends /** *
    * `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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -67,13 +68,13 @@ public interface AnyRulesOrBuilder extends /** *
    * `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
+   * 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"]];
+   * //  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"]];
    * }
    * ```
    * 
@@ -91,8 +92,8 @@ public interface AnyRulesOrBuilder extends * * ```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"]]; + * // 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"]]; * } * ``` * @@ -108,8 +109,8 @@ public interface AnyRulesOrBuilder extends * * ```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"]]; + * // 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"]]; * } * ``` * @@ -124,8 +125,8 @@ public interface AnyRulesOrBuilder extends * * ```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"]]; + * // 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"]]; * } * ``` * @@ -141,8 +142,8 @@ public interface AnyRulesOrBuilder extends * * ```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"]]; + * // 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"]]; * } * ``` * diff --git a/src/main/java/build/buf/validate/BoolRules.java b/src/main/java/build/buf/validate/BoolRules.java index 6c4305bb..a81560e4 100644 --- a/src/main/java/build/buf/validate/BoolRules.java +++ b/src/main/java/build/buf/validate/BoolRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,31 +14,33 @@ * Protobuf type {@code buf.validate.BoolRules} */ public final class BoolRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BoolRules.class.getName()); + } // Use BoolRules.newBuilder() to construct. - private BoolRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BoolRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BoolRules() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BoolRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -54,8 +57,8 @@ protected java.lang.Object newInstance( * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -74,8 +77,8 @@ public boolean hasConst() { * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -193,20 +196,20 @@ public static build.buf.validate.BoolRules parseFrom( } public static build.buf.validate.BoolRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -214,20 +217,20 @@ public static build.buf.validate.BoolRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -247,7 +250,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -260,7 +263,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.BoolRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.BoolRules) build.buf.validate.BoolRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -269,7 +272,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -282,7 +285,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -332,38 +335,6 @@ private void buildPartial0(build.buf.validate.BoolRules result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.BoolRules) { @@ -435,8 +406,8 @@ public Builder mergeFrom( * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -455,8 +426,8 @@ public boolean hasConst() { * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -475,8 +446,8 @@ public boolean getConst() { * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -499,8 +470,8 @@ public Builder setConst(boolean value) { * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -514,18 +485,6 @@ public Builder clearConst() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.BoolRules) } diff --git a/src/main/java/build/buf/validate/BoolRulesOrBuilder.java b/src/main/java/build/buf/validate/BoolRulesOrBuilder.java index 6b959b04..da0cd83e 100644 --- a/src/main/java/build/buf/validate/BoolRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/BoolRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface BoolRulesOrBuilder extends @@ -15,8 +16,8 @@ public interface BoolRulesOrBuilder extends * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * @@ -32,8 +33,8 @@ public interface BoolRulesOrBuilder extends * * ```proto * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; * } * ``` * diff --git a/src/main/java/build/buf/validate/BytesRules.java b/src/main/java/build/buf/validate/BytesRules.java index 57ef86e2..bd002015 100644 --- a/src/main/java/build/buf/validate/BytesRules.java +++ b/src/main/java/build/buf/validate/BytesRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.BytesRules} */ public final class BytesRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + BytesRules.class.getName()); + } // Use BytesRules.newBuilder() to construct. - private BytesRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BytesRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private BytesRules() { @@ -31,20 +41,13 @@ private BytesRules() { notIn_ = emptyList(com.google.protobuf.ByteString.class); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -105,8 +108,8 @@ public int getNumber() { * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -125,8 +128,8 @@ public boolean hasConst() { * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -148,8 +151,8 @@ public com.google.protobuf.ByteString getConst() { * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -168,8 +171,8 @@ public boolean hasLen() { * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -192,8 +195,8 @@ public long getLen() { * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -213,8 +216,8 @@ public boolean hasMinLen() { * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -237,8 +240,8 @@ public long getMinLen() { * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -258,8 +261,8 @@ public boolean hasMaxLen() { * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -285,8 +288,8 @@ public long getMaxLen() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -308,8 +311,8 @@ public boolean hasPattern() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -340,8 +343,8 @@ public java.lang.String getPattern() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -374,8 +377,8 @@ public java.lang.String getPattern() { * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -395,8 +398,8 @@ public boolean hasPrefix() { * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -419,8 +422,8 @@ public com.google.protobuf.ByteString getPrefix() { * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -440,8 +443,8 @@ public boolean hasSuffix() { * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -464,8 +467,8 @@ public com.google.protobuf.ByteString getSuffix() { * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -485,8 +488,8 @@ public boolean hasContains() { * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -511,8 +514,8 @@ public com.google.protobuf.ByteString getContains() { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -533,8 +536,8 @@ public com.google.protobuf.ByteString getContains() { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -553,8 +556,8 @@ public int getInCount() { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -580,8 +583,8 @@ public com.google.protobuf.ByteString getIn(int index) { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -603,8 +606,8 @@ public com.google.protobuf.ByteString getIn(int index) { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -624,8 +627,8 @@ public int getNotInCount() { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -646,8 +649,8 @@ public com.google.protobuf.ByteString getNotIn(int index) { * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -666,8 +669,8 @@ public boolean hasIp() { * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -691,8 +694,8 @@ public boolean getIp() { * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -711,8 +714,8 @@ public boolean hasIpv4() { * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -735,8 +738,8 @@ public boolean getIpv4() { * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -754,8 +757,8 @@ public boolean hasIpv6() { * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -795,7 +798,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt64(3, maxLen_); } if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pattern_); + com.google.protobuf.GeneratedMessage.writeString(output, 4, pattern_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBytes(5, prefix_); @@ -849,7 +852,7 @@ public int getSerializedSize() { .computeUInt64Size(3, maxLen_); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pattern_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pattern_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -1088,20 +1091,20 @@ public static build.buf.validate.BytesRules parseFrom( } public static build.buf.validate.BytesRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -1109,20 +1112,20 @@ public static build.buf.validate.BytesRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -1142,7 +1145,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1155,7 +1158,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.BytesRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.BytesRules) build.buf.validate.BytesRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -1164,7 +1167,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1177,7 +1180,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1280,38 +1283,6 @@ private void buildPartialOneofs(build.buf.validate.BytesRules result) { result.wellKnown_ = this.wellKnown_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.BytesRules) { @@ -1522,8 +1493,8 @@ public Builder clearWellKnown() { * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -1542,8 +1513,8 @@ public boolean hasConst() { * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -1562,8 +1533,8 @@ public com.google.protobuf.ByteString getConst() { * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -1586,8 +1557,8 @@ public Builder setConst(com.google.protobuf.ByteString value) { * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -1610,8 +1581,8 @@ public Builder clearConst() { * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -1630,8 +1601,8 @@ public boolean hasLen() { * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -1650,8 +1621,8 @@ public long getLen() { * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -1674,8 +1645,8 @@ public Builder setLen(long value) { * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -1699,8 +1670,8 @@ public Builder clearLen() { * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -1720,8 +1691,8 @@ public boolean hasMinLen() { * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -1741,8 +1712,8 @@ public long getMinLen() { * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -1766,8 +1737,8 @@ public Builder setMinLen(long value) { * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -1791,8 +1762,8 @@ public Builder clearMinLen() { * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -1812,8 +1783,8 @@ public boolean hasMaxLen() { * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -1833,8 +1804,8 @@ public long getMaxLen() { * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -1858,8 +1829,8 @@ public Builder setMaxLen(long value) { * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -1885,8 +1856,8 @@ public Builder clearMaxLen() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -1907,8 +1878,8 @@ public boolean hasPattern() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -1938,8 +1909,8 @@ public java.lang.String getPattern() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -1970,8 +1941,8 @@ public java.lang.String getPattern() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -1998,8 +1969,8 @@ public Builder setPattern( * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -2023,8 +1994,8 @@ public Builder clearPattern() { * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -2052,8 +2023,8 @@ public Builder setPatternBytes( * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -2073,8 +2044,8 @@ public boolean hasPrefix() { * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -2094,8 +2065,8 @@ public com.google.protobuf.ByteString getPrefix() { * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -2119,8 +2090,8 @@ public Builder setPrefix(com.google.protobuf.ByteString value) { * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -2144,8 +2115,8 @@ public Builder clearPrefix() { * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -2165,8 +2136,8 @@ public boolean hasSuffix() { * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -2186,8 +2157,8 @@ public com.google.protobuf.ByteString getSuffix() { * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -2211,8 +2182,8 @@ public Builder setSuffix(com.google.protobuf.ByteString value) { * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -2236,8 +2207,8 @@ public Builder clearSuffix() { * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -2257,8 +2228,8 @@ public boolean hasContains() { * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -2278,8 +2249,8 @@ public com.google.protobuf.ByteString getContains() { * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -2303,8 +2274,8 @@ public Builder setContains(com.google.protobuf.ByteString value) { * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -2334,8 +2305,8 @@ private void ensureInIsMutable() { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2356,8 +2327,8 @@ private void ensureInIsMutable() { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2376,8 +2347,8 @@ public int getInCount() { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2397,8 +2368,8 @@ public com.google.protobuf.ByteString getIn(int index) { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2425,8 +2396,8 @@ public Builder setIn( * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2451,8 +2422,8 @@ public Builder addIn(com.google.protobuf.ByteString value) { * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2478,8 +2449,8 @@ public Builder addAllIn( * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -2510,8 +2481,8 @@ private void ensureNotInIsMutable() { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2533,8 +2504,8 @@ private void ensureNotInIsMutable() { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2554,8 +2525,8 @@ public int getNotInCount() { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2576,8 +2547,8 @@ public com.google.protobuf.ByteString getNotIn(int index) { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2605,8 +2576,8 @@ public Builder setNotIn( * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2632,8 +2603,8 @@ public Builder addNotIn(com.google.protobuf.ByteString value) { * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2660,8 +2631,8 @@ public Builder addAllNotIn( * * ```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"}]; + * // 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"}]; * } * ``` * @@ -2683,8 +2654,8 @@ public Builder clearNotIn() { * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -2702,8 +2673,8 @@ public boolean hasIp() { * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -2724,8 +2695,8 @@ public boolean getIp() { * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -2748,8 +2719,8 @@ public Builder setIp(boolean value) { * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -2773,8 +2744,8 @@ public Builder clearIp() { * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -2792,8 +2763,8 @@ public boolean hasIpv4() { * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -2814,8 +2785,8 @@ public boolean getIpv4() { * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -2838,8 +2809,8 @@ public Builder setIpv4(boolean value) { * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -2862,8 +2833,8 @@ public Builder clearIpv4() { * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -2880,8 +2851,8 @@ public boolean hasIpv6() { * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -2901,8 +2872,8 @@ public boolean getIpv6() { * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -2924,8 +2895,8 @@ public Builder setIpv6(boolean value) { * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -2941,18 +2912,6 @@ public Builder clearIpv6() { } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.BytesRules) } diff --git a/src/main/java/build/buf/validate/BytesRulesOrBuilder.java b/src/main/java/build/buf/validate/BytesRulesOrBuilder.java index 2b388e2f..a495503d 100644 --- a/src/main/java/build/buf/validate/BytesRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/BytesRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface BytesRulesOrBuilder extends @@ -15,8 +16,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -32,8 +33,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; * } * ``` * @@ -50,8 +51,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -67,8 +68,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; * } * ``` * @@ -86,8 +87,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -104,8 +105,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; * } * ``` * @@ -123,8 +124,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -141,8 +142,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; * } * ``` * @@ -162,8 +163,8 @@ public interface BytesRulesOrBuilder extends * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -182,8 +183,8 @@ public interface BytesRulesOrBuilder extends * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -202,8 +203,8 @@ public interface BytesRulesOrBuilder extends * * ```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]+$"]; + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; * } * ``` * @@ -222,8 +223,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -240,8 +241,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; * } * ``` * @@ -259,8 +260,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -277,8 +278,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; * } * ``` * @@ -296,8 +297,8 @@ public interface BytesRulesOrBuilder extends * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -314,8 +315,8 @@ public interface BytesRulesOrBuilder extends * * ```protobuf * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; * } * ``` * @@ -333,8 +334,8 @@ public interface BytesRulesOrBuilder extends * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -351,8 +352,8 @@ public interface BytesRulesOrBuilder extends * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -369,8 +370,8 @@ public interface BytesRulesOrBuilder extends * * ```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"}]; + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; * } * ``` * @@ -390,8 +391,8 @@ public interface BytesRulesOrBuilder extends * * ```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"}]; + * // 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"}]; * } * ``` * @@ -409,8 +410,8 @@ public interface BytesRulesOrBuilder extends * * ```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"}]; + * // 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"}]; * } * ``` * @@ -428,8 +429,8 @@ public interface BytesRulesOrBuilder extends * * ```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"}]; + * // 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"}]; * } * ``` * @@ -447,8 +448,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -464,8 +465,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; * } * ``` * @@ -482,8 +483,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -499,8 +500,8 @@ public interface BytesRulesOrBuilder extends * * ```proto * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; * } * ``` * @@ -516,8 +517,8 @@ public interface BytesRulesOrBuilder extends * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * @@ -532,8 +533,8 @@ public interface BytesRulesOrBuilder extends * 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]; + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; * } * ``` * diff --git a/src/main/java/build/buf/validate/Constraint.java b/src/main/java/build/buf/validate/Constraint.java index be43b9df..4a197ae6 100644 --- a/src/main/java/build/buf/validate/Constraint.java +++ b/src/main/java/build/buf/validate/Constraint.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,12 @@ * * ```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; + * option (buf.validate.message).cel = { + * id: "foo.bar" + * message: "bar must be greater than 0" + * expression: "this.bar > 0" + * }; + * int32 bar = 1; * } * ``` * @@ -26,12 +27,21 @@ * Protobuf type {@code buf.validate.Constraint} */ public final class Constraint extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Constraint.class.getName()); + } // Use Constraint.newBuilder() to construct. - private Constraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Constraint(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Constraint() { @@ -40,20 +50,13 @@ private Constraint() { expression_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Constraint(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Constraint_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Constraint_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -229,14 +232,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, expression_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, expression_); } getUnknownFields().writeTo(output); } @@ -247,14 +250,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, expression_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, expression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -333,20 +336,20 @@ public static build.buf.validate.Constraint parseFrom( } public static build.buf.validate.Constraint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -354,20 +357,20 @@ public static build.buf.validate.Constraint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -387,7 +390,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -400,12 +403,12 @@ protected Builder newBuilderForType( * * ```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; + * option (buf.validate.message).cel = { + * id: "foo.bar" + * message: "bar must be greater than 0" + * expression: "this.bar > 0" + * }; + * int32 bar = 1; * } * ``` * @@ -413,7 +416,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Constraint} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -422,7 +425,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Constraint_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -435,7 +438,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -490,38 +493,6 @@ private void buildPartial0(build.buf.validate.Constraint result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Constraint) { @@ -917,18 +888,6 @@ public Builder setExpressionBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Constraint) } diff --git a/src/main/java/build/buf/validate/ConstraintOrBuilder.java b/src/main/java/build/buf/validate/ConstraintOrBuilder.java index 2fb8d211..34ec9e28 100644 --- a/src/main/java/build/buf/validate/ConstraintOrBuilder.java +++ b/src/main/java/build/buf/validate/ConstraintOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface ConstraintOrBuilder extends diff --git a/src/main/java/build/buf/validate/DoubleRules.java b/src/main/java/build/buf/validate/DoubleRules.java index 24ed11a9..5d7be9bf 100644 --- a/src/main/java/build/buf/validate/DoubleRules.java +++ b/src/main/java/build/buf/validate/DoubleRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.DoubleRules} */ public final class DoubleRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DoubleRules.class.getName()); + } // Use DoubleRules.newBuilder() to construct. - private DoubleRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DoubleRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DoubleRules() { @@ -26,20 +36,13 @@ private DoubleRules() { notIn_ = emptyDoubleList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DoubleRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -160,8 +163,8 @@ public boolean hasConst() { * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -183,8 +186,8 @@ public double getConst() { * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -204,8 +207,8 @@ public boolean hasLt() { * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -230,8 +233,8 @@ public double getLt() { * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -251,8 +254,8 @@ public boolean hasLte() { * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -279,14 +282,14 @@ public double getLte() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -308,14 +311,14 @@ public boolean hasGt() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -342,14 +345,14 @@ public double getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -371,14 +374,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -406,8 +409,8 @@ public double getGte() { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -428,8 +431,8 @@ public double getGte() { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -448,8 +451,8 @@ public int getInCount() { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -475,8 +478,8 @@ public double getIn(int index) { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -497,8 +500,8 @@ public double getIn(int index) { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -517,8 +520,8 @@ public int getNotInCount() { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -809,20 +812,20 @@ public static build.buf.validate.DoubleRules parseFrom( } public static build.buf.validate.DoubleRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -830,20 +833,20 @@ public static build.buf.validate.DoubleRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -863,7 +866,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -876,7 +879,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.DoubleRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.DoubleRules) build.buf.validate.DoubleRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -885,7 +888,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -898,7 +901,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -974,38 +977,6 @@ private void buildPartialOneofs(build.buf.validate.DoubleRules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.DoubleRules) { @@ -1217,8 +1188,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -1237,8 +1208,8 @@ public boolean hasConst() { * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -1257,8 +1228,8 @@ public double getConst() { * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -1281,8 +1252,8 @@ public Builder setConst(double value) { * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -1305,8 +1276,8 @@ public Builder clearConst() { * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -1325,8 +1296,8 @@ public boolean hasLt() { * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -1348,8 +1319,8 @@ public double getLt() { * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -1373,8 +1344,8 @@ public Builder setLt(double value) { * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -1399,8 +1370,8 @@ public Builder clearLt() { * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -1419,8 +1390,8 @@ public boolean hasLte() { * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -1442,8 +1413,8 @@ public double getLte() { * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -1467,8 +1438,8 @@ public Builder setLte(double value) { * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -1495,14 +1466,14 @@ public Builder clearLte() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1523,14 +1494,14 @@ public boolean hasGt() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1554,14 +1525,14 @@ public double getGt() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1587,14 +1558,14 @@ public Builder setGt(double value) { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1621,14 +1592,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1649,14 +1620,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1680,14 +1651,14 @@ public double getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1713,14 +1684,14 @@ public Builder setGte(double value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1758,8 +1729,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1780,8 +1751,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1800,8 +1771,8 @@ public int getInCount() { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1821,8 +1792,8 @@ public double getIn(int index) { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1849,8 +1820,8 @@ public Builder setIn( * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1875,8 +1846,8 @@ public Builder addIn(double value) { * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1902,8 +1873,8 @@ public Builder addAllIn( * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1939,8 +1910,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1961,8 +1932,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1981,8 +1952,8 @@ public int getNotInCount() { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2002,8 +1973,8 @@ public double getNotIn(int index) { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2030,8 +2001,8 @@ public Builder setNotIn( * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2056,8 +2027,8 @@ public Builder addNotIn(double value) { * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2083,8 +2054,8 @@ public Builder addAllNotIn( * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2145,18 +2116,6 @@ public Builder clearFinite() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.DoubleRules) } diff --git a/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java b/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java index 5aaaa5aa..9c571c87 100644 --- a/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface DoubleRulesOrBuilder extends @@ -15,8 +16,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -32,8 +33,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; * } * ``` * @@ -51,8 +52,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -69,8 +70,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; * } * ``` * @@ -88,8 +89,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -106,8 +107,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; * } * ``` * @@ -127,14 +128,14 @@ public interface DoubleRulesOrBuilder extends * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface DoubleRulesOrBuilder extends * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface DoubleRulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface DoubleRulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -249,8 +250,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -267,8 +268,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -287,8 +288,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -305,8 +306,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -323,8 +324,8 @@ public interface DoubleRulesOrBuilder extends * * ```proto * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/DurationRules.java b/src/main/java/build/buf/validate/DurationRules.java index 441473c9..ba99f48d 100644 --- a/src/main/java/build/buf/validate/DurationRules.java +++ b/src/main/java/build/buf/validate/DurationRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.DurationRules} */ public final class DurationRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + DurationRules.class.getName()); + } // Use DurationRules.newBuilder() to construct. - private DurationRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DurationRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DurationRules() { @@ -25,20 +35,13 @@ private DurationRules() { notIn_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DurationRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -161,8 +164,8 @@ public boolean hasConst() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -182,8 +185,8 @@ public com.google.protobuf.Duration getConst() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -204,8 +207,8 @@ public com.google.protobuf.DurationOrBuilder getConstOrBuilder() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -225,8 +228,8 @@ public boolean hasLt() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -249,8 +252,8 @@ public com.google.protobuf.Duration getLt() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -274,8 +277,8 @@ public com.google.protobuf.DurationOrBuilder getLtOrBuilder() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -295,8 +298,8 @@ public boolean hasLte() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -319,8 +322,8 @@ public com.google.protobuf.Duration getLte() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -346,14 +349,14 @@ public com.google.protobuf.DurationOrBuilder getLteOrBuilder() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -375,14 +378,14 @@ public boolean hasGt() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -407,14 +410,14 @@ public com.google.protobuf.Duration getGt() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -440,14 +443,14 @@ public com.google.protobuf.DurationOrBuilder getGtOrBuilder() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -469,14 +472,14 @@ public boolean hasGte() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -501,14 +504,14 @@ public com.google.protobuf.Duration getGte() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -534,8 +537,8 @@ public com.google.protobuf.DurationOrBuilder getGteOrBuilder() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -554,8 +557,8 @@ public java.util.List getInList() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -575,8 +578,8 @@ public java.util.List getInList() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -595,8 +598,8 @@ public int getInCount() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -615,8 +618,8 @@ public com.google.protobuf.Duration getIn(int index) { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -641,8 +644,8 @@ public com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -662,8 +665,8 @@ public java.util.List getNotInList() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -684,8 +687,8 @@ public java.util.List getNotInList() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -705,8 +708,8 @@ public int getNotInCount() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -726,8 +729,8 @@ public com.google.protobuf.Duration getNotIn(int index) { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -948,20 +951,20 @@ public static build.buf.validate.DurationRules parseFrom( } public static build.buf.validate.DurationRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -969,20 +972,20 @@ public static build.buf.validate.DurationRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -1002,7 +1005,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1014,7 +1017,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.DurationRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.DurationRules) build.buf.validate.DurationRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -1023,7 +1026,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1036,12 +1039,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getConstFieldBuilder(); getInFieldBuilder(); @@ -1176,38 +1179,6 @@ private void buildPartialOneofs(build.buf.validate.DurationRules result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.DurationRules) { @@ -1242,7 +1213,7 @@ public Builder mergeFrom(build.buf.validate.DurationRules other) { in_ = other.in_; bitField0_ = (bitField0_ & ~0x00000020); inBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getInFieldBuilder() : null; } else { inBuilder_.addAllMessages(other.in_); @@ -1268,7 +1239,7 @@ public Builder mergeFrom(build.buf.validate.DurationRules other) { notIn_ = other.notIn_; bitField0_ = (bitField0_ & ~0x00000040); notInBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNotInFieldBuilder() : null; } else { notInBuilder_.addAllMessages(other.notIn_); @@ -1436,7 +1407,7 @@ public Builder clearGreaterThan() { private int bitField0_; private com.google.protobuf.Duration const_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> constBuilder_; /** *
@@ -1446,8 +1417,8 @@ public Builder clearGreaterThan() {
      *
      * ```proto
      * message MyDuration {
-     *   // value must equal 5s
-     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
+     * // value must equal 5s
+     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
      * }
      * ```
      * 
@@ -1466,8 +1437,8 @@ public boolean hasConst() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1490,8 +1461,8 @@ public com.google.protobuf.Duration getConst() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1519,8 +1490,8 @@ public Builder setConst(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1546,8 +1517,8 @@ public Builder setConst( * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1580,8 +1551,8 @@ public Builder mergeConst(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1606,8 +1577,8 @@ public Builder clearConst() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1627,8 +1598,8 @@ public com.google.protobuf.Duration.Builder getConstBuilder() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -1651,19 +1622,19 @@ public com.google.protobuf.DurationOrBuilder getConstOrBuilder() { * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getConstFieldBuilder() { if (constBuilder_ == null) { - constBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + constBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getConst(), getParentForChildren(), @@ -1673,7 +1644,7 @@ public com.google.protobuf.DurationOrBuilder getConstOrBuilder() { return constBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ltBuilder_; /** *
@@ -1683,8 +1654,8 @@ public com.google.protobuf.DurationOrBuilder getConstOrBuilder() {
      *
      * ```proto
      * message MyDuration {
-     *   // value must be less than 5s
-     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
+     * // value must be less than 5s
+     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
      * }
      * ```
      * 
@@ -1704,8 +1675,8 @@ public boolean hasLt() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1735,8 +1706,8 @@ public com.google.protobuf.Duration getLt() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1764,8 +1735,8 @@ public Builder setLt(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1791,8 +1762,8 @@ public Builder setLt( * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1827,8 +1798,8 @@ public Builder mergeLt(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1859,8 +1830,8 @@ public Builder clearLt() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1878,8 +1849,8 @@ public com.google.protobuf.Duration.Builder getLtBuilder() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -1905,22 +1876,22 @@ public com.google.protobuf.DurationOrBuilder getLtOrBuilder() { * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getLtFieldBuilder() { if (ltBuilder_ == null) { if (!(lessThanCase_ == 3)) { lessThan_ = com.google.protobuf.Duration.getDefaultInstance(); } - ltBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1932,7 +1903,7 @@ public com.google.protobuf.DurationOrBuilder getLtOrBuilder() { return ltBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lteBuilder_; /** *
@@ -1942,8 +1913,8 @@ public com.google.protobuf.DurationOrBuilder getLtOrBuilder() {
      *
      * ```proto
      * message MyDuration {
-     *   // value must be less than or equal to 10s
-     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
+     * // value must be less than or equal to 10s
+     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
      * }
      * ```
      * 
@@ -1963,8 +1934,8 @@ public boolean hasLte() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -1994,8 +1965,8 @@ public com.google.protobuf.Duration getLte() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -2023,8 +1994,8 @@ public Builder setLte(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -2050,8 +2021,8 @@ public Builder setLte( * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -2086,8 +2057,8 @@ public Builder mergeLte(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -2118,8 +2089,8 @@ public Builder clearLte() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -2137,8 +2108,8 @@ public com.google.protobuf.Duration.Builder getLteBuilder() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -2164,22 +2135,22 @@ public com.google.protobuf.DurationOrBuilder getLteOrBuilder() { * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getLteFieldBuilder() { if (lteBuilder_ == null) { if (!(lessThanCase_ == 4)) { lessThan_ = com.google.protobuf.Duration.getDefaultInstance(); } - lteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2191,7 +2162,7 @@ public com.google.protobuf.DurationOrBuilder getLteOrBuilder() { return lteBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gtBuilder_; /** *
@@ -2203,14 +2174,14 @@ public com.google.protobuf.DurationOrBuilder getLteOrBuilder() {
      *
      * ```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 [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 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 } }];
+     * // 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 } }];
      * }
      * ```
      * 
@@ -2232,14 +2203,14 @@ public boolean hasGt() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2271,14 +2242,14 @@ public com.google.protobuf.Duration getGt() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2308,14 +2279,14 @@ public Builder setGt(com.google.protobuf.Duration value) { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2343,14 +2314,14 @@ public Builder setGt( * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2387,14 +2358,14 @@ public Builder mergeGt(com.google.protobuf.Duration value) { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2427,14 +2398,14 @@ public Builder clearGt() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2454,14 +2425,14 @@ public com.google.protobuf.Duration.Builder getGtBuilder() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2489,28 +2460,28 @@ public com.google.protobuf.DurationOrBuilder getGtOrBuilder() { * * ```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 [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 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 } }]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getGtFieldBuilder() { if (gtBuilder_ == null) { if (!(greaterThanCase_ == 5)) { greaterThan_ = com.google.protobuf.Duration.getDefaultInstance(); } - gtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2522,7 +2493,7 @@ public com.google.protobuf.DurationOrBuilder getGtOrBuilder() { return gtBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gteBuilder_; /** *
@@ -2534,14 +2505,14 @@ public com.google.protobuf.DurationOrBuilder getGtOrBuilder() {
      *
      * ```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 [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 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 } }];
+     * // 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 } }];
      * }
      * ```
      * 
@@ -2563,14 +2534,14 @@ public boolean hasGte() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2602,14 +2573,14 @@ public com.google.protobuf.Duration getGte() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2639,14 +2610,14 @@ public Builder setGte(com.google.protobuf.Duration value) { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2674,14 +2645,14 @@ public Builder setGte( * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2718,14 +2689,14 @@ public Builder mergeGte(com.google.protobuf.Duration value) { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2758,14 +2729,14 @@ public Builder clearGte() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2785,14 +2756,14 @@ public com.google.protobuf.Duration.Builder getGteBuilder() { * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -2820,28 +2791,28 @@ public com.google.protobuf.DurationOrBuilder getGteOrBuilder() { * * ```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 [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 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 } }]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getGteFieldBuilder() { if (gteBuilder_ == null) { if (!(greaterThanCase_ == 6)) { greaterThan_ = com.google.protobuf.Duration.getDefaultInstance(); } - gteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2862,7 +2833,7 @@ private void ensureInIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inBuilder_; /** @@ -2873,8 +2844,8 @@ private void ensureInIsMutable() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -2896,8 +2867,8 @@ public java.util.List getInList() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -2919,8 +2890,8 @@ public int getInCount() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -2942,8 +2913,8 @@ public com.google.protobuf.Duration getIn(int index) { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -2972,8 +2943,8 @@ public Builder setIn( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -2999,8 +2970,8 @@ public Builder setIn( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3028,8 +2999,8 @@ public Builder addIn(com.google.protobuf.Duration value) { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3058,8 +3029,8 @@ public Builder addIn( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3085,8 +3056,8 @@ public Builder addIn( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3112,8 +3083,8 @@ public Builder addIn( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3140,8 +3111,8 @@ public Builder addAllIn( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3166,8 +3137,8 @@ public Builder clearIn() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3192,8 +3163,8 @@ public Builder removeIn(int index) { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3212,8 +3183,8 @@ public com.google.protobuf.Duration.Builder getInBuilder( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3235,8 +3206,8 @@ public com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3259,8 +3230,8 @@ public com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3279,8 +3250,8 @@ public com.google.protobuf.Duration.Builder addInBuilder() { * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3300,8 +3271,8 @@ public com.google.protobuf.Duration.Builder addInBuilder( * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3312,11 +3283,11 @@ public com.google.protobuf.Duration.Builder addInBuilder( getInBuilderList() { return getInFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getInFieldBuilder() { if (inBuilder_ == null) { - inBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + inBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( in_, ((bitField0_ & 0x00000020) != 0), @@ -3336,7 +3307,7 @@ private void ensureNotInIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> notInBuilder_; /** @@ -3348,8 +3319,8 @@ private void ensureNotInIsMutable() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3372,8 +3343,8 @@ public java.util.List getNotInList() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3396,8 +3367,8 @@ public int getNotInCount() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3420,8 +3391,8 @@ public com.google.protobuf.Duration getNotIn(int index) { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3451,8 +3422,8 @@ public Builder setNotIn( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3479,8 +3450,8 @@ public Builder setNotIn( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3509,8 +3480,8 @@ public Builder addNotIn(com.google.protobuf.Duration value) { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3540,8 +3511,8 @@ public Builder addNotIn( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3568,8 +3539,8 @@ public Builder addNotIn( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3596,8 +3567,8 @@ public Builder addNotIn( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3625,8 +3596,8 @@ public Builder addAllNotIn( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3652,8 +3623,8 @@ public Builder clearNotIn() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3679,8 +3650,8 @@ public Builder removeNotIn(int index) { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3700,8 +3671,8 @@ public com.google.protobuf.Duration.Builder getNotInBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3724,8 +3695,8 @@ public com.google.protobuf.DurationOrBuilder getNotInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3749,8 +3720,8 @@ public com.google.protobuf.DurationOrBuilder getNotInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3770,8 +3741,8 @@ public com.google.protobuf.Duration.Builder addNotInBuilder() { * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3792,8 +3763,8 @@ public com.google.protobuf.Duration.Builder addNotInBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -3804,11 +3775,11 @@ public com.google.protobuf.Duration.Builder addNotInBuilder( getNotInBuilderList() { return getNotInFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getNotInFieldBuilder() { if (notInBuilder_ == null) { - notInBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + notInBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( notIn_, ((bitField0_ & 0x00000040) != 0), @@ -3818,18 +3789,6 @@ public com.google.protobuf.Duration.Builder addNotInBuilder( } return notInBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.DurationRules) } diff --git a/src/main/java/build/buf/validate/DurationRulesOrBuilder.java b/src/main/java/build/buf/validate/DurationRulesOrBuilder.java index 3675a06c..e1a9e9b8 100644 --- a/src/main/java/build/buf/validate/DurationRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/DurationRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface DurationRulesOrBuilder extends @@ -16,8 +17,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -34,8 +35,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -52,8 +53,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; * } * ``` * @@ -70,8 +71,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -88,8 +89,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -106,8 +107,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; * } * ``` * @@ -124,8 +125,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -142,8 +143,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -160,8 +161,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; * } * ``` * @@ -180,14 +181,14 @@ public interface DurationRulesOrBuilder extends * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -206,14 +207,14 @@ public interface DurationRulesOrBuilder extends * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -232,14 +233,14 @@ public interface DurationRulesOrBuilder extends * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -258,14 +259,14 @@ public interface DurationRulesOrBuilder extends * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -284,14 +285,14 @@ public interface DurationRulesOrBuilder extends * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -310,14 +311,14 @@ public interface DurationRulesOrBuilder extends * * ```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 [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 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 } }]; + * // 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 } }]; * } * ``` * @@ -334,8 +335,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -352,8 +353,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -369,8 +370,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -386,8 +387,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -404,8 +405,8 @@ public interface DurationRulesOrBuilder extends * * ```proto * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; * } * ``` * @@ -424,8 +425,8 @@ com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -443,8 +444,8 @@ com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -461,8 +462,8 @@ com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -479,8 +480,8 @@ com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * @@ -498,8 +499,8 @@ com.google.protobuf.DurationOrBuilder getInOrBuilder( * * ```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"]]; + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; * } * ``` * diff --git a/src/main/java/build/buf/validate/EnumRules.java b/src/main/java/build/buf/validate/EnumRules.java index 5c21ff91..0db58bd8 100644 --- a/src/main/java/build/buf/validate/EnumRules.java +++ b/src/main/java/build/buf/validate/EnumRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.EnumRules} */ public final class EnumRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + EnumRules.class.getName()); + } // Use EnumRules.newBuilder() to construct. - private EnumRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnumRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private EnumRules() { @@ -25,20 +35,13 @@ private EnumRules() { notIn_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -55,14 +58,14 @@ protected java.lang.Object newInstance( * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -81,14 +84,14 @@ public boolean hasConst() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -110,14 +113,14 @@ public int getConst() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -136,14 +139,14 @@ public boolean hasDefinedOnly() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -163,19 +166,19 @@ public 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.
+   * 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;
+   * 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]}];
+   * // The field `value` must be equal to one of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
    * }
    * ```
    * 
@@ -191,19 +194,19 @@ public 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.
+   * 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;
+   * 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]}];
+   * // The field `value` must be equal to one of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
    * }
    * ```
    * 
@@ -217,19 +220,19 @@ public 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.
+   * 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;
+   * 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]}];
+   * // The field `value` must be equal to one of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
    * }
    * ```
    * 
@@ -250,19 +253,19 @@ public 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
+   * 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;
+   * 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]}];
+   * // The field `value` must not be equal to any of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
    * }
    * ```
    * 
@@ -278,19 +281,19 @@ public 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
+   * 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;
+   * 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]}];
+   * // The field `value` must not be equal to any of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
    * }
    * ```
    * 
@@ -304,19 +307,19 @@ public 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
+   * 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;
+   * 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]}];
+   * // The field `value` must not be equal to any of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
    * }
    * ```
    * 
@@ -506,20 +509,20 @@ public static build.buf.validate.EnumRules parseFrom( } public static build.buf.validate.EnumRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -527,20 +530,20 @@ public static build.buf.validate.EnumRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -560,7 +563,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -572,7 +575,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.EnumRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.EnumRules) build.buf.validate.EnumRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -581,7 +584,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -594,7 +597,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -659,38 +662,6 @@ private void buildPartial0(build.buf.validate.EnumRules result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.EnumRules) { @@ -824,14 +795,14 @@ public Builder mergeFrom( * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -850,14 +821,14 @@ public boolean hasConst() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -876,14 +847,14 @@ public int getConst() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -906,14 +877,14 @@ public Builder setConst(int value) { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -936,14 +907,14 @@ public Builder clearConst() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -962,14 +933,14 @@ public boolean hasDefinedOnly() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -988,14 +959,14 @@ public boolean getDefinedOnly() { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -1018,14 +989,14 @@ public Builder setDefinedOnly(boolean value) { * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -1050,19 +1021,19 @@ private void ensureInIsMutable() { /** *
      * `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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1078,19 +1049,19 @@ private void ensureInIsMutable() { /** *
      * `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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1104,19 +1075,19 @@ public 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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1131,19 +1102,19 @@ public int getIn(int 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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1165,19 +1136,19 @@ public Builder setIn( /** *
      * `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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1197,19 +1168,19 @@ public Builder addIn(int value) { /** *
      * `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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1230,19 +1201,19 @@ public Builder addAllIn( /** *
      * `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.
+     * 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;
+     * 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]}];
+     * // The field `value` must be equal to one of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
      * }
      * ```
      * 
@@ -1267,19 +1238,19 @@ private void ensureNotInIsMutable() { /** *
      * `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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1295,19 +1266,19 @@ private void ensureNotInIsMutable() { /** *
      * `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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1321,19 +1292,19 @@ public 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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1348,19 +1319,19 @@ public int getNotIn(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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1382,19 +1353,19 @@ public Builder setNotIn( /** *
      * `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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1414,19 +1385,19 @@ public Builder addNotIn(int value) { /** *
      * `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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1447,19 +1418,19 @@ public Builder addAllNotIn( /** *
      * `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
+     * 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;
+     * 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]}];
+     * // The field `value` must not be equal to any of the specified values.
+     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
      * }
      * ```
      * 
@@ -1473,18 +1444,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.EnumRules) } diff --git a/src/main/java/build/buf/validate/EnumRulesOrBuilder.java b/src/main/java/build/buf/validate/EnumRulesOrBuilder.java index 58d897a3..21f39b8b 100644 --- a/src/main/java/build/buf/validate/EnumRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/EnumRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface EnumRulesOrBuilder extends @@ -15,14 +16,14 @@ public interface EnumRulesOrBuilder extends * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -38,14 +39,14 @@ public interface EnumRulesOrBuilder extends * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; * } * ``` * @@ -62,14 +63,14 @@ public interface EnumRulesOrBuilder extends * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -85,14 +86,14 @@ public interface EnumRulesOrBuilder extends * * ```proto * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; + * 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]; + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; * } * ``` * @@ -105,19 +106,19 @@ public interface EnumRulesOrBuilder extends /** *
    * `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.
+   * 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;
+   * 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]}];
+   * // The field `value` must be equal to one of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
    * }
    * ```
    * 
@@ -129,19 +130,19 @@ public interface EnumRulesOrBuilder extends /** *
    * `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.
+   * 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;
+   * 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]}];
+   * // The field `value` must be equal to one of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
    * }
    * ```
    * 
@@ -153,19 +154,19 @@ public interface EnumRulesOrBuilder extends /** *
    * `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.
+   * 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;
+   * 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]}];
+   * // The field `value` must be equal to one of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
    * }
    * ```
    * 
@@ -179,19 +180,19 @@ public interface EnumRulesOrBuilder extends /** *
    * `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
+   * 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;
+   * 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]}];
+   * // The field `value` must not be equal to any of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
    * }
    * ```
    * 
@@ -203,19 +204,19 @@ public interface EnumRulesOrBuilder extends /** *
    * `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
+   * 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;
+   * 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]}];
+   * // The field `value` must not be equal to any of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
    * }
    * ```
    * 
@@ -227,19 +228,19 @@ public interface EnumRulesOrBuilder extends /** *
    * `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
+   * 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;
+   * 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]}];
+   * // The field `value` must not be equal to any of the specified values.
+   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
    * }
    * ```
    * 
diff --git a/src/main/java/build/buf/validate/ExpressionProto.java b/src/main/java/build/buf/validate/ExpressionProto.java index 7316d927..5cbd0987 100644 --- a/src/main/java/build/buf/validate/ExpressionProto.java +++ b/src/main/java/build/buf/validate/ExpressionProto.java @@ -1,11 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public final class ExpressionProto { private ExpressionProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + ExpressionProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -18,17 +28,17 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_Constraint_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_Constraint_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_Violations_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_Violation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -59,21 +69,22 @@ public static void registerAllExtensions( internal_static_buf_validate_Constraint_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_Constraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_Constraint_descriptor, new java.lang.String[] { "Id", "Message", "Expression", }); internal_static_buf_validate_Violations_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_Violations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(2); internal_static_buf_validate_Violation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_Violation_descriptor, new java.lang.String[] { "FieldPath", "ConstraintId", "Message", "ForKey", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/build/buf/validate/FieldConstraints.java b/src/main/java/build/buf/validate/FieldConstraints.java index 2893d912..d786c0ad 100644 --- a/src/main/java/build/buf/validate/FieldConstraints.java +++ b/src/main/java/build/buf/validate/FieldConstraints.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.FieldConstraints} */ public final class FieldConstraints extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FieldConstraints.class.getName()); + } // Use FieldConstraints.newBuilder() to construct. - private FieldConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FieldConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FieldConstraints() { @@ -26,20 +36,13 @@ private FieldConstraints() { ignore_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldConstraints(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -137,12 +140,12 @@ public int getNumber() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -161,12 +164,12 @@ public java.util.List getCelList() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -186,12 +189,12 @@ public java.util.List getCelList() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -210,12 +213,12 @@ public int getCelCount() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -234,12 +237,12 @@ public build.buf.validate.Constraint getCel(int index) { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -260,17 +263,17 @@ public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * 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) + * - 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]; + * // The field `value` must be set to a non-null value. + * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; * } * ``` * @@ -292,12 +295,12 @@ public boolean getRequired() { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -315,12 +318,12 @@ public boolean getRequired() { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -1525,20 +1528,20 @@ public static build.buf.validate.FieldConstraints parseFrom( } public static build.buf.validate.FieldConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -1546,20 +1549,20 @@ public static build.buf.validate.FieldConstraints parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -1579,7 +1582,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1592,7 +1595,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.FieldConstraints} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -1601,7 +1604,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1614,7 +1617,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1848,38 +1851,6 @@ private void buildPartialOneofs(build.buf.validate.FieldConstraints result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.FieldConstraints) { @@ -1911,7 +1882,7 @@ public Builder mergeFrom(build.buf.validate.FieldConstraints other) { cel_ = other.cel_; bitField0_ = (bitField0_ & ~0x00000001); celBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCelFieldBuilder() : null; } else { celBuilder_.addAllMessages(other.cel_); @@ -2266,7 +2237,7 @@ private void ensureCelIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> celBuilder_; /** @@ -2277,12 +2248,12 @@ private void ensureCelIsMutable() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2304,12 +2275,12 @@ public java.util.List getCelList() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2331,12 +2302,12 @@ public int getCelCount() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2358,12 +2329,12 @@ public build.buf.validate.Constraint getCel(int index) { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2392,12 +2363,12 @@ public Builder setCel( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2423,12 +2394,12 @@ public Builder setCel( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2456,12 +2427,12 @@ public Builder addCel(build.buf.validate.Constraint value) { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2490,12 +2461,12 @@ public Builder addCel( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2521,12 +2492,12 @@ public Builder addCel( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2552,12 +2523,12 @@ public Builder addCel( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2584,12 +2555,12 @@ public Builder addAllCel( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2614,12 +2585,12 @@ public Builder clearCel() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2644,12 +2615,12 @@ public Builder removeCel(int index) { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2668,12 +2639,12 @@ public build.buf.validate.Constraint.Builder getCelBuilder( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2695,12 +2666,12 @@ public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2723,12 +2694,12 @@ public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2747,12 +2718,12 @@ public build.buf.validate.Constraint.Builder addCelBuilder() { * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2772,12 +2743,12 @@ public build.buf.validate.Constraint.Builder addCelBuilder( * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -2788,11 +2759,11 @@ public build.buf.validate.Constraint.Builder addCelBuilder( getCelBuilderList() { return getCelFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> getCelFieldBuilder() { if (celBuilder_ == null) { - celBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + celBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder>( cel_, ((bitField0_ & 0x00000001) != 0), @@ -2810,17 +2781,17 @@ public build.buf.validate.Constraint.Builder addCelBuilder( * 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) + * - 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]; + * // The field `value` must be set to a non-null value. + * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; * } * ``` * @@ -2838,17 +2809,17 @@ public boolean getRequired() { * 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) + * - 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]; + * // The field `value` must be set to a non-null value. + * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; * } * ``` * @@ -2870,17 +2841,17 @@ public Builder setRequired(boolean value) { * 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) + * - 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]; + * // The field `value` must be set to a non-null value. + * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; * } * ``` * @@ -2903,12 +2874,12 @@ public Builder clearRequired() { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -2926,12 +2897,12 @@ public Builder clearRequired() { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -2953,12 +2924,12 @@ public Builder setIgnoreValue(int value) { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -2978,12 +2949,12 @@ public build.buf.validate.Ignore getIgnore() { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -3008,12 +2979,12 @@ public Builder setIgnore(build.buf.validate.Ignore value) { * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -3028,7 +2999,7 @@ public Builder clearIgnore() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.FloatRules, build.buf.validate.FloatRules.Builder, build.buf.validate.FloatRulesOrBuilder> floatBuilder_; /** *
@@ -3187,14 +3158,14 @@ public build.buf.validate.FloatRulesOrBuilder getFloatOrBuilder() {
      *
      * .buf.validate.FloatRules float = 1 [json_name = "float"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.FloatRules, build.buf.validate.FloatRules.Builder, build.buf.validate.FloatRulesOrBuilder> 
         getFloatFieldBuilder() {
       if (floatBuilder_ == null) {
         if (!(typeCase_ == 1)) {
           type_ = build.buf.validate.FloatRules.getDefaultInstance();
         }
-        floatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -3206,7 +3177,7 @@ public build.buf.validate.FloatRulesOrBuilder getFloatOrBuilder() {
       return floatBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -3329,14 +3300,14 @@ public build.buf.validate.DoubleRulesOrBuilder getDoubleOrBuilder() {
     /**
      * .buf.validate.DoubleRules double = 2 [json_name = "double"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.DoubleRules, build.buf.validate.DoubleRules.Builder, build.buf.validate.DoubleRulesOrBuilder> 
         getDoubleFieldBuilder() {
       if (doubleBuilder_ == null) {
         if (!(typeCase_ == 2)) {
           type_ = build.buf.validate.DoubleRules.getDefaultInstance();
         }
-        doubleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -3348,7 +3319,7 @@ public build.buf.validate.DoubleRulesOrBuilder getDoubleOrBuilder() {
       return doubleBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -3471,14 +3442,14 @@ public build.buf.validate.Int32RulesOrBuilder getInt32OrBuilder() {
     /**
      * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.Int32Rules, build.buf.validate.Int32Rules.Builder, build.buf.validate.Int32RulesOrBuilder> 
         getInt32FieldBuilder() {
       if (int32Builder_ == null) {
         if (!(typeCase_ == 3)) {
           type_ = build.buf.validate.Int32Rules.getDefaultInstance();
         }
-        int32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -3490,7 +3461,7 @@ public build.buf.validate.Int32RulesOrBuilder getInt32OrBuilder() {
       return int32Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -3613,14 +3584,14 @@ public build.buf.validate.Int64RulesOrBuilder getInt64OrBuilder() {
     /**
      * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.Int64Rules, build.buf.validate.Int64Rules.Builder, build.buf.validate.Int64RulesOrBuilder> 
         getInt64FieldBuilder() {
       if (int64Builder_ == null) {
         if (!(typeCase_ == 4)) {
           type_ = build.buf.validate.Int64Rules.getDefaultInstance();
         }
-        int64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -3632,7 +3603,7 @@ public build.buf.validate.Int64RulesOrBuilder getInt64OrBuilder() {
       return int64Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -3755,14 +3726,14 @@ public build.buf.validate.UInt32RulesOrBuilder getUint32OrBuilder() {
     /**
      * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.UInt32Rules, build.buf.validate.UInt32Rules.Builder, build.buf.validate.UInt32RulesOrBuilder> 
         getUint32FieldBuilder() {
       if (uint32Builder_ == null) {
         if (!(typeCase_ == 5)) {
           type_ = build.buf.validate.UInt32Rules.getDefaultInstance();
         }
-        uint32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -3774,7 +3745,7 @@ public build.buf.validate.UInt32RulesOrBuilder getUint32OrBuilder() {
       return uint32Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -3897,14 +3868,14 @@ public build.buf.validate.UInt64RulesOrBuilder getUint64OrBuilder() {
     /**
      * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.UInt64Rules, build.buf.validate.UInt64Rules.Builder, build.buf.validate.UInt64RulesOrBuilder> 
         getUint64FieldBuilder() {
       if (uint64Builder_ == null) {
         if (!(typeCase_ == 6)) {
           type_ = build.buf.validate.UInt64Rules.getDefaultInstance();
         }
-        uint64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -3916,7 +3887,7 @@ public build.buf.validate.UInt64RulesOrBuilder getUint64OrBuilder() {
       return uint64Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4039,14 +4010,14 @@ public build.buf.validate.SInt32RulesOrBuilder getSint32OrBuilder() {
     /**
      * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.SInt32Rules, build.buf.validate.SInt32Rules.Builder, build.buf.validate.SInt32RulesOrBuilder> 
         getSint32FieldBuilder() {
       if (sint32Builder_ == null) {
         if (!(typeCase_ == 7)) {
           type_ = build.buf.validate.SInt32Rules.getDefaultInstance();
         }
-        sint32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4058,7 +4029,7 @@ public build.buf.validate.SInt32RulesOrBuilder getSint32OrBuilder() {
       return sint32Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4181,14 +4152,14 @@ public build.buf.validate.SInt64RulesOrBuilder getSint64OrBuilder() {
     /**
      * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.SInt64Rules, build.buf.validate.SInt64Rules.Builder, build.buf.validate.SInt64RulesOrBuilder> 
         getSint64FieldBuilder() {
       if (sint64Builder_ == null) {
         if (!(typeCase_ == 8)) {
           type_ = build.buf.validate.SInt64Rules.getDefaultInstance();
         }
-        sint64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4200,7 +4171,7 @@ public build.buf.validate.SInt64RulesOrBuilder getSint64OrBuilder() {
       return sint64Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4323,14 +4294,14 @@ public build.buf.validate.Fixed32RulesOrBuilder getFixed32OrBuilder() {
     /**
      * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.Fixed32Rules, build.buf.validate.Fixed32Rules.Builder, build.buf.validate.Fixed32RulesOrBuilder> 
         getFixed32FieldBuilder() {
       if (fixed32Builder_ == null) {
         if (!(typeCase_ == 9)) {
           type_ = build.buf.validate.Fixed32Rules.getDefaultInstance();
         }
-        fixed32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4342,7 +4313,7 @@ public build.buf.validate.Fixed32RulesOrBuilder getFixed32OrBuilder() {
       return fixed32Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4465,14 +4436,14 @@ public build.buf.validate.Fixed64RulesOrBuilder getFixed64OrBuilder() {
     /**
      * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.Fixed64Rules, build.buf.validate.Fixed64Rules.Builder, build.buf.validate.Fixed64RulesOrBuilder> 
         getFixed64FieldBuilder() {
       if (fixed64Builder_ == null) {
         if (!(typeCase_ == 10)) {
           type_ = build.buf.validate.Fixed64Rules.getDefaultInstance();
         }
-        fixed64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4484,7 +4455,7 @@ public build.buf.validate.Fixed64RulesOrBuilder getFixed64OrBuilder() {
       return fixed64Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4607,14 +4578,14 @@ public build.buf.validate.SFixed32RulesOrBuilder getSfixed32OrBuilder() {
     /**
      * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.SFixed32Rules, build.buf.validate.SFixed32Rules.Builder, build.buf.validate.SFixed32RulesOrBuilder> 
         getSfixed32FieldBuilder() {
       if (sfixed32Builder_ == null) {
         if (!(typeCase_ == 11)) {
           type_ = build.buf.validate.SFixed32Rules.getDefaultInstance();
         }
-        sfixed32Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4626,7 +4597,7 @@ public build.buf.validate.SFixed32RulesOrBuilder getSfixed32OrBuilder() {
       return sfixed32Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4749,14 +4720,14 @@ public build.buf.validate.SFixed64RulesOrBuilder getSfixed64OrBuilder() {
     /**
      * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.SFixed64Rules, build.buf.validate.SFixed64Rules.Builder, build.buf.validate.SFixed64RulesOrBuilder> 
         getSfixed64FieldBuilder() {
       if (sfixed64Builder_ == null) {
         if (!(typeCase_ == 12)) {
           type_ = build.buf.validate.SFixed64Rules.getDefaultInstance();
         }
-        sfixed64Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4768,7 +4739,7 @@ public build.buf.validate.SFixed64RulesOrBuilder getSfixed64OrBuilder() {
       return sfixed64Builder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -4891,14 +4862,14 @@ public build.buf.validate.BoolRulesOrBuilder getBoolOrBuilder() {
     /**
      * .buf.validate.BoolRules bool = 13 [json_name = "bool"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.BoolRules, build.buf.validate.BoolRules.Builder, build.buf.validate.BoolRulesOrBuilder> 
         getBoolFieldBuilder() {
       if (boolBuilder_ == null) {
         if (!(typeCase_ == 13)) {
           type_ = build.buf.validate.BoolRules.getDefaultInstance();
         }
-        boolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -4910,7 +4881,7 @@ public build.buf.validate.BoolRulesOrBuilder getBoolOrBuilder() {
       return boolBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -5033,14 +5004,14 @@ public build.buf.validate.StringRulesOrBuilder getStringOrBuilder() {
     /**
      * .buf.validate.StringRules string = 14 [json_name = "string"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.StringRules, build.buf.validate.StringRules.Builder, build.buf.validate.StringRulesOrBuilder> 
         getStringFieldBuilder() {
       if (stringBuilder_ == null) {
         if (!(typeCase_ == 14)) {
           type_ = build.buf.validate.StringRules.getDefaultInstance();
         }
-        stringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5052,7 +5023,7 @@ public build.buf.validate.StringRulesOrBuilder getStringOrBuilder() {
       return stringBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -5175,14 +5146,14 @@ public build.buf.validate.BytesRulesOrBuilder getBytesOrBuilder() {
     /**
      * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.BytesRules, build.buf.validate.BytesRules.Builder, build.buf.validate.BytesRulesOrBuilder> 
         getBytesFieldBuilder() {
       if (bytesBuilder_ == null) {
         if (!(typeCase_ == 15)) {
           type_ = build.buf.validate.BytesRules.getDefaultInstance();
         }
-        bytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5194,7 +5165,7 @@ public build.buf.validate.BytesRulesOrBuilder getBytesOrBuilder() {
       return bytesBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.EnumRules, build.buf.validate.EnumRules.Builder, build.buf.validate.EnumRulesOrBuilder> enumBuilder_;
     /**
      * 
@@ -5353,14 +5324,14 @@ public build.buf.validate.EnumRulesOrBuilder getEnumOrBuilder() {
      *
      * .buf.validate.EnumRules enum = 16 [json_name = "enum"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.EnumRules, build.buf.validate.EnumRules.Builder, build.buf.validate.EnumRulesOrBuilder> 
         getEnumFieldBuilder() {
       if (enumBuilder_ == null) {
         if (!(typeCase_ == 16)) {
           type_ = build.buf.validate.EnumRules.getDefaultInstance();
         }
-        enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5372,7 +5343,7 @@ public build.buf.validate.EnumRulesOrBuilder getEnumOrBuilder() {
       return enumBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -5495,14 +5466,14 @@ public build.buf.validate.RepeatedRulesOrBuilder getRepeatedOrBuilder() {
     /**
      * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.RepeatedRules, build.buf.validate.RepeatedRules.Builder, build.buf.validate.RepeatedRulesOrBuilder> 
         getRepeatedFieldBuilder() {
       if (repeatedBuilder_ == null) {
         if (!(typeCase_ == 18)) {
           type_ = build.buf.validate.RepeatedRules.getDefaultInstance();
         }
-        repeatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5514,7 +5485,7 @@ public build.buf.validate.RepeatedRulesOrBuilder getRepeatedOrBuilder() {
       return repeatedBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -5637,14 +5608,14 @@ public build.buf.validate.MapRulesOrBuilder getMapOrBuilder() {
     /**
      * .buf.validate.MapRules map = 19 [json_name = "map"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.MapRules, build.buf.validate.MapRules.Builder, build.buf.validate.MapRulesOrBuilder> 
         getMapFieldBuilder() {
       if (mapBuilder_ == null) {
         if (!(typeCase_ == 19)) {
           type_ = build.buf.validate.MapRules.getDefaultInstance();
         }
-        mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5656,7 +5627,7 @@ public build.buf.validate.MapRulesOrBuilder getMapOrBuilder() {
       return mapBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.AnyRules, build.buf.validate.AnyRules.Builder, build.buf.validate.AnyRulesOrBuilder> anyBuilder_;
     /**
      * 
@@ -5815,14 +5786,14 @@ public build.buf.validate.AnyRulesOrBuilder getAnyOrBuilder() {
      *
      * .buf.validate.AnyRules any = 20 [json_name = "any"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.AnyRules, build.buf.validate.AnyRules.Builder, build.buf.validate.AnyRulesOrBuilder> 
         getAnyFieldBuilder() {
       if (anyBuilder_ == null) {
         if (!(typeCase_ == 20)) {
           type_ = build.buf.validate.AnyRules.getDefaultInstance();
         }
-        anyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5834,7 +5805,7 @@ public build.buf.validate.AnyRulesOrBuilder getAnyOrBuilder() {
       return anyBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -5957,14 +5928,14 @@ public build.buf.validate.DurationRulesOrBuilder getDurationOrBuilder() {
     /**
      * .buf.validate.DurationRules duration = 21 [json_name = "duration"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.DurationRules, build.buf.validate.DurationRules.Builder, build.buf.validate.DurationRulesOrBuilder> 
         getDurationFieldBuilder() {
       if (durationBuilder_ == null) {
         if (!(typeCase_ == 21)) {
           type_ = build.buf.validate.DurationRules.getDefaultInstance();
         }
-        durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -5976,7 +5947,7 @@ public build.buf.validate.DurationRulesOrBuilder getDurationOrBuilder() {
       return durationBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
+    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"];
@@ -6099,14 +6070,14 @@ public build.buf.validate.TimestampRulesOrBuilder getTimestampOrBuilder() {
     /**
      * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"];
      */
-    private com.google.protobuf.SingleFieldBuilderV3<
+    private com.google.protobuf.SingleFieldBuilder<
         build.buf.validate.TimestampRules, build.buf.validate.TimestampRules.Builder, build.buf.validate.TimestampRulesOrBuilder> 
         getTimestampFieldBuilder() {
       if (timestampBuilder_ == null) {
         if (!(typeCase_ == 22)) {
           type_ = build.buf.validate.TimestampRules.getDefaultInstance();
         }
-        timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+        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(),
@@ -6217,18 +6188,6 @@ public build.buf.validate.TimestampRulesOrBuilder getTimestampOrBuilder() {
       onChanged();
       return this;
     }
-    @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.setUnknownFields(unknownFields);
-    }
-
-    @java.lang.Override
-    public final Builder mergeUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
-      return super.mergeUnknownFields(unknownFields);
-    }
-
 
     // @@protoc_insertion_point(builder_scope:buf.validate.FieldConstraints)
   }
diff --git a/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java b/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java
index 34364c08..8d2605f9 100644
--- a/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java
+++ b/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java
@@ -1,7 +1,8 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
 // source: buf/validate/validate.proto
+// Protobuf Java Version: 4.27.3
 
-// Protobuf Java Version: 3.25.3
 package build.buf.validate;
 
 public interface FieldConstraintsOrBuilder extends
@@ -16,12 +17,12 @@ public interface FieldConstraintsOrBuilder extends
    *
    * ```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",
-   *   }];
+   * // 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",
+   * }];
    * }
    * ```
    * 
@@ -38,12 +39,12 @@ public interface FieldConstraintsOrBuilder extends * * ```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", - * }]; + * // 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", + * }]; * } * ``` *
@@ -59,12 +60,12 @@ public interface FieldConstraintsOrBuilder extends * * ```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", - * }]; + * // 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", + * }]; * } * ``` *
@@ -80,12 +81,12 @@ public interface FieldConstraintsOrBuilder extends * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -102,12 +103,12 @@ public interface FieldConstraintsOrBuilder extends * * ```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", - * }]; + * // 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", + * }]; * } * ``` * @@ -123,17 +124,17 @@ build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * 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) + * - 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]; + * // The field `value` must be set to a non-null value. + * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; * } * ``` * @@ -150,12 +151,12 @@ build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * * ```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, - * ]; + * // 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, + * ]; * } * ``` * @@ -171,12 +172,12 @@ build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * * ```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, - * ]; + * // 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, + * ]; * } * ``` * diff --git a/src/main/java/build/buf/validate/Fixed32Rules.java b/src/main/java/build/buf/validate/Fixed32Rules.java index bb7037d7..c1eb6ec3 100644 --- a/src/main/java/build/buf/validate/Fixed32Rules.java +++ b/src/main/java/build/buf/validate/Fixed32Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.Fixed32Rules} */ public final class Fixed32Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed32Rules.class.getName()); + } // Use Fixed32Rules.newBuilder() to construct. - private Fixed32Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed32Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed32Rules() { @@ -25,20 +35,13 @@ private Fixed32Rules() { notIn_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Fixed32Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -182,8 +185,8 @@ public int getConst() { * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -203,8 +206,8 @@ public boolean hasLt() { * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -229,8 +232,8 @@ public int getLt() { * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -250,8 +253,8 @@ public boolean hasLte() { * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -278,14 +281,14 @@ public int getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -307,14 +310,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -341,14 +344,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -370,14 +373,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -405,8 +408,8 @@ public int getGte() { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -427,8 +430,8 @@ public int getGte() { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -447,8 +450,8 @@ public int getInCount() { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -474,8 +477,8 @@ public int getIn(int index) { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -496,8 +499,8 @@ public int getIn(int index) { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -516,8 +519,8 @@ public int getNotInCount() { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -770,20 +773,20 @@ public static build.buf.validate.Fixed32Rules parseFrom( } public static build.buf.validate.Fixed32Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -791,20 +794,20 @@ public static build.buf.validate.Fixed32Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -824,7 +827,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -836,7 +839,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Fixed32Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.Fixed32Rules) build.buf.validate.Fixed32RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -845,7 +848,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -858,7 +861,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -930,38 +933,6 @@ private void buildPartialOneofs(build.buf.validate.Fixed32Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Fixed32Rules) { @@ -1165,8 +1136,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -1185,8 +1156,8 @@ public boolean hasConst() { * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -1205,8 +1176,8 @@ public int getConst() { * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -1229,8 +1200,8 @@ public Builder setConst(int value) { * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -1253,8 +1224,8 @@ public Builder clearConst() { * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -1273,8 +1244,8 @@ public boolean hasLt() { * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -1296,8 +1267,8 @@ public int getLt() { * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -1321,8 +1292,8 @@ public Builder setLt(int value) { * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -1347,8 +1318,8 @@ public Builder clearLt() { * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -1367,8 +1338,8 @@ public boolean hasLte() { * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -1390,8 +1361,8 @@ public int getLte() { * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -1415,8 +1386,8 @@ public Builder setLte(int value) { * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -1443,14 +1414,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1471,14 +1442,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1502,14 +1473,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1535,14 +1506,14 @@ public Builder setGt(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1569,14 +1540,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1597,14 +1568,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1628,14 +1599,14 @@ public int getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1661,14 +1632,14 @@ public Builder setGte(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1706,8 +1677,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1728,8 +1699,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1748,8 +1719,8 @@ public int getInCount() { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1769,8 +1740,8 @@ public int getIn(int index) { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1797,8 +1768,8 @@ public Builder setIn( * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1823,8 +1794,8 @@ public Builder addIn(int value) { * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1850,8 +1821,8 @@ public Builder addAllIn( * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1887,8 +1858,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1909,8 +1880,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1929,8 +1900,8 @@ public int getNotInCount() { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1950,8 +1921,8 @@ public int getNotIn(int index) { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1978,8 +1949,8 @@ public Builder setNotIn( * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2004,8 +1975,8 @@ public Builder addNotIn(int value) { * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2031,8 +2002,8 @@ public Builder addAllNotIn( * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2046,18 +2017,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Fixed32Rules) } diff --git a/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java b/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java index 87e51dec..e16b7f54 100644 --- a/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface Fixed32RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface Fixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface Fixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface Fixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface Fixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface Fixed32RulesOrBuilder extends * * ```proto * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/Fixed64Rules.java b/src/main/java/build/buf/validate/Fixed64Rules.java index 8fe90934..ca15381c 100644 --- a/src/main/java/build/buf/validate/Fixed64Rules.java +++ b/src/main/java/build/buf/validate/Fixed64Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.Fixed64Rules} */ public final class Fixed64Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Fixed64Rules.class.getName()); + } // Use Fixed64Rules.newBuilder() to construct. - private Fixed64Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Fixed64Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Fixed64Rules() { @@ -25,20 +35,13 @@ private Fixed64Rules() { notIn_ = emptyLongList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Fixed64Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -182,8 +185,8 @@ public long getConst() { * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -203,8 +206,8 @@ public boolean hasLt() { * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -229,8 +232,8 @@ public long getLt() { * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -250,8 +253,8 @@ public boolean hasLte() { * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -278,14 +281,14 @@ public long getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -307,14 +310,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -341,14 +344,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -370,14 +373,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -405,8 +408,8 @@ public long getGte() { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -427,8 +430,8 @@ public long getGte() { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -447,8 +450,8 @@ public int getInCount() { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -474,8 +477,8 @@ public long getIn(int index) { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -496,8 +499,8 @@ public long getIn(int index) { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -516,8 +519,8 @@ public int getNotInCount() { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -775,20 +778,20 @@ public static build.buf.validate.Fixed64Rules parseFrom( } public static build.buf.validate.Fixed64Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -796,20 +799,20 @@ public static build.buf.validate.Fixed64Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -829,7 +832,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -841,7 +844,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Fixed64Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.Fixed64Rules) build.buf.validate.Fixed64RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -850,7 +853,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -863,7 +866,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -935,38 +938,6 @@ private void buildPartialOneofs(build.buf.validate.Fixed64Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Fixed64Rules) { @@ -1170,8 +1141,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -1190,8 +1161,8 @@ public boolean hasConst() { * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -1210,8 +1181,8 @@ public long getConst() { * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -1234,8 +1205,8 @@ public Builder setConst(long value) { * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -1258,8 +1229,8 @@ public Builder clearConst() { * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -1278,8 +1249,8 @@ public boolean hasLt() { * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -1301,8 +1272,8 @@ public long getLt() { * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -1326,8 +1297,8 @@ public Builder setLt(long value) { * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -1352,8 +1323,8 @@ public Builder clearLt() { * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -1372,8 +1343,8 @@ public boolean hasLte() { * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -1395,8 +1366,8 @@ public long getLte() { * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -1420,8 +1391,8 @@ public Builder setLte(long value) { * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -1448,14 +1419,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1476,14 +1447,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1507,14 +1478,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1540,14 +1511,14 @@ public Builder setGt(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1574,14 +1545,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1602,14 +1573,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1633,14 +1604,14 @@ public long getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1666,14 +1637,14 @@ public Builder setGte(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1711,8 +1682,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1733,8 +1704,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1753,8 +1724,8 @@ public int getInCount() { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1774,8 +1745,8 @@ public long getIn(int index) { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1802,8 +1773,8 @@ public Builder setIn( * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1828,8 +1799,8 @@ public Builder addIn(long value) { * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1855,8 +1826,8 @@ public Builder addAllIn( * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1892,8 +1863,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1914,8 +1885,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1934,8 +1905,8 @@ public int getNotInCount() { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1955,8 +1926,8 @@ public long getNotIn(int index) { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1983,8 +1954,8 @@ public Builder setNotIn( * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2009,8 +1980,8 @@ public Builder addNotIn(long value) { * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2036,8 +2007,8 @@ public Builder addAllNotIn( * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2051,18 +2022,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Fixed64Rules) } diff --git a/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java b/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java index 4756bdc3..9a1995b9 100644 --- a/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface Fixed64RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface Fixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface Fixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface Fixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface Fixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface Fixed64RulesOrBuilder extends * * ```proto * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/FloatRules.java b/src/main/java/build/buf/validate/FloatRules.java index 38260e2b..4ef6e4eb 100644 --- a/src/main/java/build/buf/validate/FloatRules.java +++ b/src/main/java/build/buf/validate/FloatRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.FloatRules} */ public final class FloatRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FloatRules.class.getName()); + } // Use FloatRules.newBuilder() to construct. - private FloatRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FloatRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FloatRules() { @@ -26,20 +36,13 @@ private FloatRules() { notIn_ = emptyFloatList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FloatRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -160,8 +163,8 @@ public boolean hasConst() { * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -183,8 +186,8 @@ public float getConst() { * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -204,8 +207,8 @@ public boolean hasLt() { * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -230,8 +233,8 @@ public float getLt() { * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -251,8 +254,8 @@ public boolean hasLte() { * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -279,14 +282,14 @@ public float getLte() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -308,14 +311,14 @@ public boolean hasGt() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -342,14 +345,14 @@ public float getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -371,14 +374,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -406,8 +409,8 @@ public float getGte() { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -428,8 +431,8 @@ public float getGte() { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -448,8 +451,8 @@ public int getInCount() { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -475,8 +478,8 @@ public float getIn(int index) { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -497,8 +500,8 @@ public float getIn(int index) { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -517,8 +520,8 @@ public int getNotInCount() { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -809,20 +812,20 @@ public static build.buf.validate.FloatRules parseFrom( } public static build.buf.validate.FloatRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -830,20 +833,20 @@ public static build.buf.validate.FloatRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -863,7 +866,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -876,7 +879,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.FloatRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.FloatRules) build.buf.validate.FloatRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -885,7 +888,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -898,7 +901,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -974,38 +977,6 @@ private void buildPartialOneofs(build.buf.validate.FloatRules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.FloatRules) { @@ -1217,8 +1188,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -1237,8 +1208,8 @@ public boolean hasConst() { * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -1257,8 +1228,8 @@ public float getConst() { * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -1281,8 +1252,8 @@ public Builder setConst(float value) { * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -1305,8 +1276,8 @@ public Builder clearConst() { * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -1325,8 +1296,8 @@ public boolean hasLt() { * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -1348,8 +1319,8 @@ public float getLt() { * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -1373,8 +1344,8 @@ public Builder setLt(float value) { * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -1399,8 +1370,8 @@ public Builder clearLt() { * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -1419,8 +1390,8 @@ public boolean hasLte() { * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -1442,8 +1413,8 @@ public float getLte() { * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -1467,8 +1438,8 @@ public Builder setLte(float value) { * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -1495,14 +1466,14 @@ public Builder clearLte() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1523,14 +1494,14 @@ public boolean hasGt() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1554,14 +1525,14 @@ public float getGt() { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1587,14 +1558,14 @@ public Builder setGt(float value) { * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -1621,14 +1592,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1649,14 +1620,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1680,14 +1651,14 @@ public float getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1713,14 +1684,14 @@ public Builder setGte(float value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1758,8 +1729,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1780,8 +1751,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1800,8 +1771,8 @@ public int getInCount() { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1821,8 +1792,8 @@ public float getIn(int index) { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1849,8 +1820,8 @@ public Builder setIn( * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1875,8 +1846,8 @@ public Builder addIn(float value) { * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1902,8 +1873,8 @@ public Builder addAllIn( * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1939,8 +1910,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1961,8 +1932,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -1981,8 +1952,8 @@ public int getNotInCount() { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2002,8 +1973,8 @@ public float getNotIn(int index) { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2030,8 +2001,8 @@ public Builder setNotIn( * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2056,8 +2027,8 @@ public Builder addNotIn(float value) { * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2083,8 +2054,8 @@ public Builder addAllNotIn( * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -2145,18 +2116,6 @@ public Builder clearFinite() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.FloatRules) } diff --git a/src/main/java/build/buf/validate/FloatRulesOrBuilder.java b/src/main/java/build/buf/validate/FloatRulesOrBuilder.java index afbb9765..21542868 100644 --- a/src/main/java/build/buf/validate/FloatRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/FloatRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface FloatRulesOrBuilder extends @@ -15,8 +16,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -32,8 +33,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; * } * ``` * @@ -51,8 +52,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -69,8 +70,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; * } * ``` * @@ -88,8 +89,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -106,8 +107,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; * } * ``` * @@ -127,14 +128,14 @@ public interface FloatRulesOrBuilder extends * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface FloatRulesOrBuilder extends * * ```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.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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface FloatRulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface FloatRulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -249,8 +250,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -267,8 +268,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -287,8 +288,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -305,8 +306,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * @@ -323,8 +324,8 @@ public interface FloatRulesOrBuilder extends * * ```proto * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/Ignore.java b/src/main/java/build/buf/validate/Ignore.java index 02d7bf22..b91048d6 100644 --- a/src/main/java/build/buf/validate/Ignore.java +++ b/src/main/java/build/buf/validate/Ignore.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -22,27 +23,27 @@ public enum Ignore * 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 = {/* ... */} - * ]; + * // 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 = {/* ... */} + * ]; * } * ``` * @@ -60,33 +61,33 @@ public enum Ignore * 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 - * ]; + * // 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 + * ]; * } * ``` * @@ -105,35 +106,35 @@ public enum Ignore * 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 - * ]; + * // 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 + * ]; * } * ``` * @@ -143,14 +144,14 @@ public enum Ignore * 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 - * ]; + * // 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 + * ]; * } * * @@ -166,10 +167,10 @@ public enum Ignore * * ```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]; + * // 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]; * } * ``` * @@ -180,6 +181,15 @@ public enum Ignore UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Ignore.class.getName()); + } /** *
    * Deprecated: Use IGNORE_IF_UNPOPULATED instead. TODO: Remove this value pre-v1.
@@ -204,27 +214,27 @@ public enum Ignore
    * 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 = {/* ... */}
-   *   ];
+   * // 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 = {/* ... */}
+   * ];
    * }
    * ```
    * 
@@ -242,33 +252,33 @@ public enum Ignore * 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 - * ]; + * // 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 + * ]; * } * ``` * @@ -287,35 +297,35 @@ public enum Ignore * 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 - * ]; + * // 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 + * ]; * } * ``` * @@ -325,14 +335,14 @@ public enum Ignore * 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 - * ]; + * // 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 + * ]; * } * * @@ -348,10 +358,10 @@ public enum Ignore * * ```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]; + * // 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]; * } * ``` * diff --git a/src/main/java/build/buf/validate/Int32Rules.java b/src/main/java/build/buf/validate/Int32Rules.java index c6b2d287..6d7264cd 100644 --- a/src/main/java/build/buf/validate/Int32Rules.java +++ b/src/main/java/build/buf/validate/Int32Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.Int32Rules} */ public final class Int32Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int32Rules.class.getName()); + } // Use Int32Rules.newBuilder() to construct. - private Int32Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int32Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int32Rules() { @@ -26,20 +36,13 @@ private Int32Rules() { notIn_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int32Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -160,8 +163,8 @@ public boolean hasConst() { * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -183,8 +186,8 @@ public int getConst() { * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -204,8 +207,8 @@ public boolean hasLt() { * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -230,8 +233,8 @@ public int getLt() { * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -251,8 +254,8 @@ public boolean hasLte() { * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -279,14 +282,14 @@ public int getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -308,14 +311,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -342,14 +345,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -371,14 +374,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -406,8 +409,8 @@ public int getGte() { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -428,8 +431,8 @@ public int getGte() { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -448,8 +451,8 @@ public int getInCount() { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -475,8 +478,8 @@ public int getIn(int index) { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -497,8 +500,8 @@ public int getIn(int index) { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -517,8 +520,8 @@ public int getNotInCount() { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -777,20 +780,20 @@ public static build.buf.validate.Int32Rules parseFrom( } public static build.buf.validate.Int32Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -798,20 +801,20 @@ public static build.buf.validate.Int32Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -831,7 +834,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -844,7 +847,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Int32Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.Int32Rules) build.buf.validate.Int32RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -853,7 +856,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -866,7 +869,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -938,38 +941,6 @@ private void buildPartialOneofs(build.buf.validate.Int32Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Int32Rules) { @@ -1171,8 +1142,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -1191,8 +1162,8 @@ public boolean hasConst() { * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -1211,8 +1182,8 @@ public int getConst() { * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -1235,8 +1206,8 @@ public Builder setConst(int value) { * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -1259,8 +1230,8 @@ public Builder clearConst() { * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -1279,8 +1250,8 @@ public boolean hasLt() { * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -1302,8 +1273,8 @@ public int getLt() { * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -1327,8 +1298,8 @@ public Builder setLt(int value) { * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -1353,8 +1324,8 @@ public Builder clearLt() { * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -1373,8 +1344,8 @@ public boolean hasLte() { * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -1396,8 +1367,8 @@ public int getLte() { * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -1421,8 +1392,8 @@ public Builder setLte(int value) { * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -1449,14 +1420,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1477,14 +1448,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1508,14 +1479,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1541,14 +1512,14 @@ public Builder setGt(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1575,14 +1546,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1603,14 +1574,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1634,14 +1605,14 @@ public int getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1667,14 +1638,14 @@ public Builder setGte(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1706,8 +1677,8 @@ private void ensureInIsMutable() { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1728,8 +1699,8 @@ private void ensureInIsMutable() { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1748,8 +1719,8 @@ public int getInCount() { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1769,8 +1740,8 @@ public int getIn(int index) { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1797,8 +1768,8 @@ public Builder setIn( * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1823,8 +1794,8 @@ public Builder addIn(int value) { * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1850,8 +1821,8 @@ public Builder addAllIn( * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -1881,8 +1852,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1903,8 +1874,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1923,8 +1894,8 @@ public int getNotInCount() { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1944,8 +1915,8 @@ public int getNotIn(int index) { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1972,8 +1943,8 @@ public Builder setNotIn( * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1998,8 +1969,8 @@ public Builder addNotIn(int value) { * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2025,8 +1996,8 @@ public Builder addAllNotIn( * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2040,18 +2011,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Int32Rules) } diff --git a/src/main/java/build/buf/validate/Int32RulesOrBuilder.java b/src/main/java/build/buf/validate/Int32RulesOrBuilder.java index b33287ac..ad2e3fa6 100644 --- a/src/main/java/build/buf/validate/Int32RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/Int32RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface Int32RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface Int32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface Int32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface Int32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface Int32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface Int32RulesOrBuilder extends * * ```proto * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/Int64Rules.java b/src/main/java/build/buf/validate/Int64Rules.java index 51a171be..372a7b15 100644 --- a/src/main/java/build/buf/validate/Int64Rules.java +++ b/src/main/java/build/buf/validate/Int64Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.Int64Rules} */ public final class Int64Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Int64Rules.class.getName()); + } // Use Int64Rules.newBuilder() to construct. - private Int64Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Int64Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Int64Rules() { @@ -26,20 +36,13 @@ private Int64Rules() { notIn_ = emptyLongList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int64Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -160,8 +163,8 @@ public boolean hasConst() { * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -183,8 +186,8 @@ public long getConst() { * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -204,8 +207,8 @@ public boolean hasLt() { * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -230,8 +233,8 @@ public long getLt() { * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -251,8 +254,8 @@ public boolean hasLte() { * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -279,14 +282,14 @@ public long getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -308,14 +311,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -342,14 +345,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -371,14 +374,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -406,8 +409,8 @@ public long getGte() { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -428,8 +431,8 @@ public long getGte() { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -448,8 +451,8 @@ public int getInCount() { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -475,8 +478,8 @@ public long getIn(int index) { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -497,8 +500,8 @@ public long getIn(int index) { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -517,8 +520,8 @@ public int getNotInCount() { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -782,20 +785,20 @@ public static build.buf.validate.Int64Rules parseFrom( } public static build.buf.validate.Int64Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -803,20 +806,20 @@ public static build.buf.validate.Int64Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -836,7 +839,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -849,7 +852,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Int64Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.Int64Rules) build.buf.validate.Int64RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -858,7 +861,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -871,7 +874,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -943,38 +946,6 @@ private void buildPartialOneofs(build.buf.validate.Int64Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Int64Rules) { @@ -1176,8 +1147,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -1196,8 +1167,8 @@ public boolean hasConst() { * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -1216,8 +1187,8 @@ public long getConst() { * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -1240,8 +1211,8 @@ public Builder setConst(long value) { * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -1264,8 +1235,8 @@ public Builder clearConst() { * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -1284,8 +1255,8 @@ public boolean hasLt() { * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -1307,8 +1278,8 @@ public long getLt() { * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -1332,8 +1303,8 @@ public Builder setLt(long value) { * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -1358,8 +1329,8 @@ public Builder clearLt() { * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -1378,8 +1349,8 @@ public boolean hasLte() { * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -1401,8 +1372,8 @@ public long getLte() { * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -1426,8 +1397,8 @@ public Builder setLte(long value) { * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -1454,14 +1425,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1482,14 +1453,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1513,14 +1484,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1546,14 +1517,14 @@ public Builder setGt(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1580,14 +1551,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1608,14 +1579,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1639,14 +1610,14 @@ public long getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1672,14 +1643,14 @@ public Builder setGte(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1711,8 +1682,8 @@ private void ensureInIsMutable() { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1733,8 +1704,8 @@ private void ensureInIsMutable() { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1753,8 +1724,8 @@ public int getInCount() { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1774,8 +1745,8 @@ public long getIn(int index) { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1802,8 +1773,8 @@ public Builder setIn( * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1828,8 +1799,8 @@ public Builder addIn(long value) { * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1855,8 +1826,8 @@ public Builder addAllIn( * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -1886,8 +1857,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1908,8 +1879,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1928,8 +1899,8 @@ public int getNotInCount() { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1949,8 +1920,8 @@ public long getNotIn(int index) { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1977,8 +1948,8 @@ public Builder setNotIn( * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2003,8 +1974,8 @@ public Builder addNotIn(long value) { * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2030,8 +2001,8 @@ public Builder addAllNotIn( * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2045,18 +2016,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Int64Rules) } diff --git a/src/main/java/build/buf/validate/Int64RulesOrBuilder.java b/src/main/java/build/buf/validate/Int64RulesOrBuilder.java index 53cd64ce..d29902e4 100644 --- a/src/main/java/build/buf/validate/Int64RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/Int64RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface Int64RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface Int64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface Int64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface Int64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface Int64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface Int64RulesOrBuilder extends * * ```proto * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/KnownRegex.java b/src/main/java/build/buf/validate/KnownRegex.java index 1bf6579a..bf99b956 100644 --- a/src/main/java/build/buf/validate/KnownRegex.java +++ b/src/main/java/build/buf/validate/KnownRegex.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -36,6 +37,15 @@ public enum KnownRegex UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + KnownRegex.class.getName()); + } /** * KNOWN_REGEX_UNSPECIFIED = 0; */ diff --git a/src/main/java/build/buf/validate/MapRules.java b/src/main/java/build/buf/validate/MapRules.java index 5d3c32ad..74801218 100644 --- a/src/main/java/build/buf/validate/MapRules.java +++ b/src/main/java/build/buf/validate/MapRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,31 +13,33 @@ * Protobuf type {@code buf.validate.MapRules} */ public final class MapRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MapRules.class.getName()); + } // Use MapRules.newBuilder() to construct. - private MapRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MapRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MapRules() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -48,13 +51,13 @@ protected java.lang.Object newInstance( private long minPairs_ = 0L; /** *
-   *Specifies the minimum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at least 2 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
    * }
    * ```
    * 
@@ -68,13 +71,13 @@ public boolean hasMinPairs() { } /** *
-   *Specifies the minimum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at least 2 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
    * }
    * ```
    * 
@@ -91,13 +94,13 @@ public long getMinPairs() { private long maxPairs_ = 0L; /** *
-   *Specifies the maximum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at most 3 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
    * }
    * ```
    * 
@@ -111,13 +114,13 @@ public boolean hasMaxPairs() { } /** *
-   *Specifies the maximum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at most 3 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
    * }
    * ```
    * 
@@ -134,17 +137,17 @@ public long getMaxPairs() { private build.buf.validate.FieldConstraints keys_; /** *
-   *Specifies the constraints to be applied to each key in the field.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -158,17 +161,17 @@ public boolean hasKeys() { } /** *
-   *Specifies the constraints to be applied to each key in the field.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -182,17 +185,17 @@ public build.buf.validate.FieldConstraints getKeys() { } /** *
-   *Specifies the constraints to be applied to each key in the field.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -208,19 +211,19 @@ public build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder() { private build.buf.validate.FieldConstraints values_; /** *
-   *Specifies the constraints to be applied to the value of each key in the
+   * 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.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -234,19 +237,19 @@ public boolean hasValues() { } /** *
-   *Specifies the constraints to be applied to the value of each key in the
+   * 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.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -260,19 +263,19 @@ public build.buf.validate.FieldConstraints getValues() { } /** *
-   *Specifies the constraints to be applied to the value of each key in the
+   * 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.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -438,20 +441,20 @@ public static build.buf.validate.MapRules parseFrom( } public static build.buf.validate.MapRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -459,20 +462,20 @@ public static build.buf.validate.MapRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -492,7 +495,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -504,7 +507,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.MapRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.MapRules) build.buf.validate.MapRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -513,7 +516,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -526,12 +529,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getKeysFieldBuilder(); getValuesFieldBuilder(); @@ -610,38 +613,6 @@ private void buildPartial0(build.buf.validate.MapRules result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.MapRules) { @@ -736,13 +707,13 @@ public Builder mergeFrom( private long minPairs_ ; /** *
-     *Specifies the minimum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at least 2 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
      * }
      * ```
      * 
@@ -756,13 +727,13 @@ public boolean hasMinPairs() { } /** *
-     *Specifies the minimum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at least 2 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
      * }
      * ```
      * 
@@ -776,13 +747,13 @@ public long getMinPairs() { } /** *
-     *Specifies the minimum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at least 2 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
      * }
      * ```
      * 
@@ -800,13 +771,13 @@ public Builder setMinPairs(long value) { } /** *
-     *Specifies the minimum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at least 2 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
      * }
      * ```
      * 
@@ -824,13 +795,13 @@ public Builder clearMinPairs() { private long maxPairs_ ; /** *
-     *Specifies the maximum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at most 3 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
      * }
      * ```
      * 
@@ -844,13 +815,13 @@ public boolean hasMaxPairs() { } /** *
-     *Specifies the maximum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at most 3 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
      * }
      * ```
      * 
@@ -864,13 +835,13 @@ public long getMaxPairs() { } /** *
-     *Specifies the maximum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at most 3 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
      * }
      * ```
      * 
@@ -888,13 +859,13 @@ public Builder setMaxPairs(long value) { } /** *
-     *Specifies the maximum number of key-value pairs allowed. If the field has
+     * 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];
+     * // The field `value` must have at most 3 key-value pairs.
+     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
      * }
      * ```
      * 
@@ -910,21 +881,21 @@ public Builder clearMaxPairs() { } private build.buf.validate.FieldConstraints keys_; - private com.google.protobuf.SingleFieldBuilderV3< + 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -937,17 +908,17 @@ public boolean hasKeys() { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -964,17 +935,17 @@ public build.buf.validate.FieldConstraints getKeys() { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -996,17 +967,17 @@ public Builder setKeys(build.buf.validate.FieldConstraints value) { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1026,17 +997,17 @@ public Builder setKeys( } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1063,17 +1034,17 @@ public Builder mergeKeys(build.buf.validate.FieldConstraints value) { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1092,17 +1063,17 @@ public Builder clearKeys() { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1116,17 +1087,17 @@ public build.buf.validate.FieldConstraints.Builder getKeysBuilder() { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1143,28 +1114,28 @@ public build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder() { } /** *
-     *Specifies the constraints to be applied to each key in the field.
+     * 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
-     *     }
-     *   }];
+     * // 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.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + keysBuilder_ = new com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder>( getKeys(), getParentForChildren(), @@ -1175,23 +1146,23 @@ public build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder() { } private build.buf.validate.FieldConstraints values_; - private com.google.protobuf.SingleFieldBuilderV3< + 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
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1204,19 +1175,19 @@ public boolean hasValues() { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1233,19 +1204,19 @@ public build.buf.validate.FieldConstraints getValues() { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1267,19 +1238,19 @@ public Builder setValues(build.buf.validate.FieldConstraints value) { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1299,19 +1270,19 @@ public Builder setValues( } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1338,19 +1309,19 @@ public Builder mergeValues(build.buf.validate.FieldConstraints value) { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1369,19 +1340,19 @@ public Builder clearValues() { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1395,19 +1366,19 @@ public build.buf.validate.FieldConstraints.Builder getValuesBuilder() { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1424,30 +1395,30 @@ public build.buf.validate.FieldConstraintsOrBuilder getValuesOrBuilder() { } /** *
-     *Specifies the constraints to be applied to the value of each key in the
+     * 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.
+     * 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
-     *     }
-     *   }];
+     * // 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.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder>( getValues(), getParentForChildren(), @@ -1456,18 +1427,6 @@ public build.buf.validate.FieldConstraintsOrBuilder getValuesOrBuilder() { } return valuesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.MapRules) } diff --git a/src/main/java/build/buf/validate/MapRulesOrBuilder.java b/src/main/java/build/buf/validate/MapRulesOrBuilder.java index d2e33309..0dbbfb3d 100644 --- a/src/main/java/build/buf/validate/MapRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/MapRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface MapRulesOrBuilder extends @@ -10,13 +11,13 @@ public interface MapRulesOrBuilder extends /** *
-   *Specifies the minimum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at least 2 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
    * }
    * ```
    * 
@@ -27,13 +28,13 @@ public interface MapRulesOrBuilder extends boolean hasMinPairs(); /** *
-   *Specifies the minimum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at least 2 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
    * }
    * ```
    * 
@@ -45,13 +46,13 @@ public interface MapRulesOrBuilder extends /** *
-   *Specifies the maximum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at most 3 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
    * }
    * ```
    * 
@@ -62,13 +63,13 @@ public interface MapRulesOrBuilder extends boolean hasMaxPairs(); /** *
-   *Specifies the maximum number of key-value pairs allowed. If the field has
+   * 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];
+   * // The field `value` must have at most 3 key-value pairs.
+   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
    * }
    * ```
    * 
@@ -80,17 +81,17 @@ public interface MapRulesOrBuilder extends /** *
-   *Specifies the constraints to be applied to each key in the field.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -101,17 +102,17 @@ public interface MapRulesOrBuilder extends boolean hasKeys(); /** *
-   *Specifies the constraints to be applied to each key in the field.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -122,17 +123,17 @@ public interface MapRulesOrBuilder extends build.buf.validate.FieldConstraints getKeys(); /** *
-   *Specifies the constraints to be applied to each key in the field.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -143,19 +144,19 @@ public interface MapRulesOrBuilder extends /** *
-   *Specifies the constraints to be applied to the value of each key in the
+   * 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.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -166,19 +167,19 @@ public interface MapRulesOrBuilder extends boolean hasValues(); /** *
-   *Specifies the constraints to be applied to the value of each key in the
+   * 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.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
@@ -189,19 +190,19 @@ public interface MapRulesOrBuilder extends build.buf.validate.FieldConstraints getValues(); /** *
-   *Specifies the constraints to be applied to the value of each key in the
+   * 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.
+   * 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
-   *     }
-   *   }];
+   * // 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
+   * }
+   * }];
    * }
    * ```
    * 
diff --git a/src/main/java/build/buf/validate/MessageConstraints.java b/src/main/java/build/buf/validate/MessageConstraints.java index f3df34e1..a1e03fe7 100644 --- a/src/main/java/build/buf/validate/MessageConstraints.java +++ b/src/main/java/build/buf/validate/MessageConstraints.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,32 +14,34 @@ * Protobuf type {@code buf.validate.MessageConstraints} */ public final class MessageConstraints extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + MessageConstraints.class.getName()); + } // Use MessageConstraints.newBuilder() to construct. - private MessageConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageConstraints() { cel_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MessageConstraints(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -55,8 +58,8 @@ protected java.lang.Object newInstance( * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -75,8 +78,8 @@ public boolean hasDisabled() { * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -101,13 +104,13 @@ public boolean getDisabled() { * * ```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; + * // 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; * } * ``` * @@ -127,13 +130,13 @@ public java.util.List getCelList() { * * ```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; + * // 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; * } * ``` * @@ -154,13 +157,13 @@ public java.util.List getCelList() { * * ```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; + * // 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; * } * ``` * @@ -180,13 +183,13 @@ public int getCelCount() { * * ```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; + * // 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; * } * ``` * @@ -206,13 +209,13 @@ public build.buf.validate.Constraint getCel(int index) { * * ```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; + * // 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; * } * ``` * @@ -343,20 +346,20 @@ public static build.buf.validate.MessageConstraints parseFrom( } public static build.buf.validate.MessageConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -364,20 +367,20 @@ public static build.buf.validate.MessageConstraints parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -397,7 +400,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -410,7 +413,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.MessageConstraints} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -419,7 +422,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -432,7 +435,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -502,38 +505,6 @@ private void buildPartial0(build.buf.validate.MessageConstraints result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.MessageConstraints) { @@ -568,7 +539,7 @@ public Builder mergeFrom(build.buf.validate.MessageConstraints other) { cel_ = other.cel_; bitField0_ = (bitField0_ & ~0x00000002); celBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCelFieldBuilder() : null; } else { celBuilder_.addAllMessages(other.cel_); @@ -644,8 +615,8 @@ public Builder mergeFrom( * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -664,8 +635,8 @@ public boolean hasDisabled() { * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -684,8 +655,8 @@ public boolean getDisabled() { * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -708,8 +679,8 @@ public Builder setDisabled(boolean value) { * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -733,7 +704,7 @@ private void ensureCelIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> celBuilder_; /** @@ -745,13 +716,13 @@ private void ensureCelIsMutable() { * * ```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; + * // 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; * } * ``` * @@ -774,13 +745,13 @@ public java.util.List getCelList() { * * ```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; + * // 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; * } * ``` * @@ -803,13 +774,13 @@ public int getCelCount() { * * ```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; + * // 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; * } * ``` * @@ -832,13 +803,13 @@ public build.buf.validate.Constraint getCel(int index) { * * ```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; + * // 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; * } * ``` * @@ -868,13 +839,13 @@ public Builder setCel( * * ```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; + * // 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; * } * ``` * @@ -901,13 +872,13 @@ public Builder setCel( * * ```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; + * // 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; * } * ``` * @@ -936,13 +907,13 @@ public Builder addCel(build.buf.validate.Constraint value) { * * ```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; + * // 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; * } * ``` * @@ -972,13 +943,13 @@ public Builder addCel( * * ```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; + * // 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; * } * ``` * @@ -1005,13 +976,13 @@ public Builder addCel( * * ```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; + * // 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; * } * ``` * @@ -1038,13 +1009,13 @@ public Builder addCel( * * ```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; + * // 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; * } * ``` * @@ -1072,13 +1043,13 @@ public Builder addAllCel( * * ```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; + * // 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; * } * ``` * @@ -1104,13 +1075,13 @@ public Builder clearCel() { * * ```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; + * // 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; * } * ``` * @@ -1136,13 +1107,13 @@ public Builder removeCel(int index) { * * ```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; + * // 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; * } * ``` * @@ -1162,13 +1133,13 @@ public build.buf.validate.Constraint.Builder getCelBuilder( * * ```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; + * // 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; * } * ``` * @@ -1191,13 +1162,13 @@ public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * * ```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; + * // 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; * } * ``` * @@ -1221,13 +1192,13 @@ public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( * * ```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; + * // 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; * } * ``` * @@ -1247,13 +1218,13 @@ public build.buf.validate.Constraint.Builder addCelBuilder() { * * ```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; + * // 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; * } * ``` * @@ -1274,13 +1245,13 @@ public build.buf.validate.Constraint.Builder addCelBuilder( * * ```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; + * // 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; * } * ``` * @@ -1291,11 +1262,11 @@ public build.buf.validate.Constraint.Builder addCelBuilder( getCelBuilderList() { return getCelFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> getCelFieldBuilder() { if (celBuilder_ == null) { - celBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + celBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder>( cel_, ((bitField0_ & 0x00000002) != 0), @@ -1305,18 +1276,6 @@ public build.buf.validate.Constraint.Builder addCelBuilder( } return celBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.MessageConstraints) } diff --git a/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java b/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java index 5b571507..c9bed5a3 100644 --- a/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java +++ b/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface MessageConstraintsOrBuilder extends @@ -15,8 +16,8 @@ public interface MessageConstraintsOrBuilder extends * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -32,8 +33,8 @@ public interface MessageConstraintsOrBuilder extends * * ```proto * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; * } * ``` * @@ -52,13 +53,13 @@ public interface MessageConstraintsOrBuilder extends * * ```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; + * // 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; * } * ``` * @@ -76,13 +77,13 @@ public interface MessageConstraintsOrBuilder extends * * ```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; + * // 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; * } * ``` * @@ -99,13 +100,13 @@ public interface MessageConstraintsOrBuilder extends * * ```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; + * // 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; * } * ``` * @@ -122,13 +123,13 @@ public interface MessageConstraintsOrBuilder extends * * ```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; + * // 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; * } * ``` * @@ -146,13 +147,13 @@ public interface MessageConstraintsOrBuilder extends * * ```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; + * // 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; * } * ``` * diff --git a/src/main/java/build/buf/validate/OneofConstraints.java b/src/main/java/build/buf/validate/OneofConstraints.java index 4d8ff1d1..4654566e 100644 --- a/src/main/java/build/buf/validate/OneofConstraints.java +++ b/src/main/java/build/buf/validate/OneofConstraints.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,31 +14,33 @@ * Protobuf type {@code buf.validate.OneofConstraints} */ public final class OneofConstraints extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + OneofConstraints.class.getName()); + } // Use OneofConstraints.newBuilder() to construct. - private OneofConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private OneofConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OneofConstraints() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -57,13 +60,13 @@ protected java.lang.Object newInstance( * * ```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; - * } + * 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; + * } * } * ``` * @@ -85,13 +88,13 @@ public boolean hasRequired() { * * ```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; - * } + * 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; + * } * } * ``` * @@ -209,20 +212,20 @@ public static build.buf.validate.OneofConstraints parseFrom( } public static build.buf.validate.OneofConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -230,20 +233,20 @@ public static build.buf.validate.OneofConstraints parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -263,7 +266,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.OneofConstraints} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -348,38 +351,6 @@ private void buildPartial0(build.buf.validate.OneofConstraints result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.OneofConstraints) { @@ -454,13 +425,13 @@ public Builder mergeFrom( * * ```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; - * } + * 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; + * } * } * ``` * @@ -482,13 +453,13 @@ public boolean hasRequired() { * * ```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; - * } + * 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; + * } * } * ``` * @@ -510,13 +481,13 @@ public boolean getRequired() { * * ```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; - * } + * 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; + * } * } * ``` * @@ -542,13 +513,13 @@ public Builder setRequired(boolean value) { * * ```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; - * } + * 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; + * } * } * ``` * @@ -562,18 +533,6 @@ public Builder clearRequired() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.OneofConstraints) } diff --git a/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java b/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java index b21de8e7..2cd5dcbf 100644 --- a/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java +++ b/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface OneofConstraintsOrBuilder extends @@ -18,13 +19,13 @@ public interface OneofConstraintsOrBuilder extends * * ```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; - * } + * 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; + * } * } * ``` * @@ -43,13 +44,13 @@ public interface OneofConstraintsOrBuilder extends * * ```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; - * } + * 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; + * } * } * ``` * diff --git a/src/main/java/build/buf/validate/RepeatedRules.java b/src/main/java/build/buf/validate/RepeatedRules.java index f17444ce..3959efe2 100644 --- a/src/main/java/build/buf/validate/RepeatedRules.java +++ b/src/main/java/build/buf/validate/RepeatedRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,31 +13,33 @@ * Protobuf type {@code buf.validate.RepeatedRules} */ public final class RepeatedRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + RepeatedRules.class.getName()); + } // Use RepeatedRules.newBuilder() to construct. - private RepeatedRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RepeatedRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepeatedRules() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -55,8 +58,8 @@ protected java.lang.Object newInstance( * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -77,8 +80,8 @@ public boolean hasMinItems() { * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -102,8 +105,8 @@ public long getMinItems() { * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -124,8 +127,8 @@ public boolean hasMaxItems() { * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -148,8 +151,8 @@ public long getMaxItems() { * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -169,8 +172,8 @@ public boolean hasUnique() { * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -193,13 +196,13 @@ public boolean getUnique() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -219,13 +222,13 @@ public boolean hasItems() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -245,13 +248,13 @@ public build.buf.validate.FieldConstraints getItems() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -418,20 +421,20 @@ public static build.buf.validate.RepeatedRules parseFrom( } public static build.buf.validate.RepeatedRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -439,20 +442,20 @@ public static build.buf.validate.RepeatedRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -472,7 +475,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -484,7 +487,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.RepeatedRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.RepeatedRules) build.buf.validate.RepeatedRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -493,7 +496,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -506,12 +509,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getItemsFieldBuilder(); } @@ -583,38 +586,6 @@ private void buildPartial0(build.buf.validate.RepeatedRules result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.RepeatedRules) { @@ -714,8 +685,8 @@ public Builder mergeFrom( * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -736,8 +707,8 @@ public boolean hasMinItems() { * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -758,8 +729,8 @@ public long getMinItems() { * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -784,8 +755,8 @@ public Builder setMinItems(long value) { * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -810,8 +781,8 @@ public Builder clearMinItems() { * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -832,8 +803,8 @@ public boolean hasMaxItems() { * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -854,8 +825,8 @@ public long getMaxItems() { * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -880,8 +851,8 @@ public Builder setMaxItems(long value) { * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -905,8 +876,8 @@ public Builder clearMaxItems() { * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -926,8 +897,8 @@ public boolean hasUnique() { * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -947,8 +918,8 @@ public boolean getUnique() { * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -972,8 +943,8 @@ public Builder setUnique(boolean value) { * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -989,7 +960,7 @@ public Builder clearUnique() { } private build.buf.validate.FieldConstraints items_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> itemsBuilder_; /** *
@@ -999,13 +970,13 @@ public Builder clearUnique() {
      *
      * ```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
-     *     }
-     *   }];
+     * // 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
+     * }
+     * }];
      * }
      * ```
      * 
@@ -1024,13 +995,13 @@ public boolean hasItems() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1053,13 +1024,13 @@ public build.buf.validate.FieldConstraints getItems() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1087,13 +1058,13 @@ public Builder setItems(build.buf.validate.FieldConstraints value) { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1119,13 +1090,13 @@ public Builder setItems( * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1158,13 +1129,13 @@ public Builder mergeItems(build.buf.validate.FieldConstraints value) { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1189,13 +1160,13 @@ public Builder clearItems() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1215,13 +1186,13 @@ public build.buf.validate.FieldConstraints.Builder getItemsBuilder() { * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -1244,24 +1215,24 @@ public build.buf.validate.FieldConstraintsOrBuilder getItemsOrBuilder() { * * ```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 - * } - * }]; + * // 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.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + itemsBuilder_ = new com.google.protobuf.SingleFieldBuilder< build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder>( getItems(), getParentForChildren(), @@ -1270,18 +1241,6 @@ public build.buf.validate.FieldConstraintsOrBuilder getItemsOrBuilder() { } return itemsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.RepeatedRules) } diff --git a/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java b/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java index 5562a595..4c68238e 100644 --- a/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface RepeatedRulesOrBuilder extends @@ -17,8 +18,8 @@ public interface RepeatedRulesOrBuilder extends * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -36,8 +37,8 @@ public interface RepeatedRulesOrBuilder extends * * ```proto * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; * } * ``` * @@ -56,8 +57,8 @@ public interface RepeatedRulesOrBuilder extends * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -75,8 +76,8 @@ public interface RepeatedRulesOrBuilder extends * * ```proto * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; * } * ``` * @@ -94,8 +95,8 @@ public interface RepeatedRulesOrBuilder extends * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -112,8 +113,8 @@ public interface RepeatedRulesOrBuilder extends * * ```proto * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; * } * ``` * @@ -131,13 +132,13 @@ public interface RepeatedRulesOrBuilder extends * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -154,13 +155,13 @@ public interface RepeatedRulesOrBuilder extends * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * @@ -177,13 +178,13 @@ public interface RepeatedRulesOrBuilder extends * * ```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 - * } - * }]; + * // 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 + * } + * }]; * } * ``` * diff --git a/src/main/java/build/buf/validate/SFixed32Rules.java b/src/main/java/build/buf/validate/SFixed32Rules.java index c54ccc15..61ec70a2 100644 --- a/src/main/java/build/buf/validate/SFixed32Rules.java +++ b/src/main/java/build/buf/validate/SFixed32Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.SFixed32Rules} */ public final class SFixed32Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed32Rules.class.getName()); + } // Use SFixed32Rules.newBuilder() to construct. - private SFixed32Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed32Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed32Rules() { @@ -25,20 +35,13 @@ private SFixed32Rules() { notIn_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SFixed32Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -182,8 +185,8 @@ public int getConst() { * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -203,8 +206,8 @@ public boolean hasLt() { * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -229,8 +232,8 @@ public int getLt() { * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -250,8 +253,8 @@ public boolean hasLte() { * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -278,14 +281,14 @@ public int getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -307,14 +310,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -341,14 +344,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -370,14 +373,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -405,8 +408,8 @@ public int getGte() { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -427,8 +430,8 @@ public int getGte() { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -447,8 +450,8 @@ public int getInCount() { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -474,8 +477,8 @@ public int getIn(int index) { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -496,8 +499,8 @@ public int getIn(int index) { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -516,8 +519,8 @@ public int getNotInCount() { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -770,20 +773,20 @@ public static build.buf.validate.SFixed32Rules parseFrom( } public static build.buf.validate.SFixed32Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -791,20 +794,20 @@ public static build.buf.validate.SFixed32Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -824,7 +827,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -836,7 +839,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.SFixed32Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.SFixed32Rules) build.buf.validate.SFixed32RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -845,7 +848,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -858,7 +861,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -930,38 +933,6 @@ private void buildPartialOneofs(build.buf.validate.SFixed32Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.SFixed32Rules) { @@ -1165,8 +1136,8 @@ public Builder clearGreaterThan() { * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -1185,8 +1156,8 @@ public boolean hasConst() { * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -1205,8 +1176,8 @@ public int getConst() { * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -1229,8 +1200,8 @@ public Builder setConst(int value) { * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -1253,8 +1224,8 @@ public Builder clearConst() { * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -1273,8 +1244,8 @@ public boolean hasLt() { * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -1296,8 +1267,8 @@ public int getLt() { * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -1321,8 +1292,8 @@ public Builder setLt(int value) { * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -1347,8 +1318,8 @@ public Builder clearLt() { * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -1367,8 +1338,8 @@ public boolean hasLte() { * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -1390,8 +1361,8 @@ public int getLte() { * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -1415,8 +1386,8 @@ public Builder setLte(int value) { * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -1443,14 +1414,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1471,14 +1442,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1502,14 +1473,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1535,14 +1506,14 @@ public Builder setGt(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1569,14 +1540,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1597,14 +1568,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1628,14 +1599,14 @@ public int getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1661,14 +1632,14 @@ public Builder setGte(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1706,8 +1677,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1728,8 +1699,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1748,8 +1719,8 @@ public int getInCount() { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1769,8 +1740,8 @@ public int getIn(int index) { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1797,8 +1768,8 @@ public Builder setIn( * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1823,8 +1794,8 @@ public Builder addIn(int value) { * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1850,8 +1821,8 @@ public Builder addAllIn( * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -1887,8 +1858,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1909,8 +1880,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1929,8 +1900,8 @@ public int getNotInCount() { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1950,8 +1921,8 @@ public int getNotIn(int index) { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1978,8 +1949,8 @@ public Builder setNotIn( * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2004,8 +1975,8 @@ public Builder addNotIn(int value) { * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2031,8 +2002,8 @@ public Builder addAllNotIn( * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2046,18 +2017,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.SFixed32Rules) } diff --git a/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java b/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java index 3794d624..eaeaafb2 100644 --- a/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface SFixed32RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface SFixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface SFixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface SFixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface SFixed32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface SFixed32RulesOrBuilder extends * * ```proto * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/SFixed64Rules.java b/src/main/java/build/buf/validate/SFixed64Rules.java index 2df95fae..bda772bb 100644 --- a/src/main/java/build/buf/validate/SFixed64Rules.java +++ b/src/main/java/build/buf/validate/SFixed64Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.SFixed64Rules} */ public final class SFixed64Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SFixed64Rules.class.getName()); + } // Use SFixed64Rules.newBuilder() to construct. - private SFixed64Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SFixed64Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SFixed64Rules() { @@ -25,20 +35,13 @@ private SFixed64Rules() { notIn_ = emptyLongList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SFixed64Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -182,8 +185,8 @@ public long getConst() { * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -203,8 +206,8 @@ public boolean hasLt() { * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -229,8 +232,8 @@ public long getLt() { * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -250,8 +253,8 @@ public boolean hasLte() { * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -278,14 +281,14 @@ public long getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -307,14 +310,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -341,14 +344,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -370,14 +373,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -405,8 +408,8 @@ public long getGte() { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -427,8 +430,8 @@ public long getGte() { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -447,8 +450,8 @@ public int getInCount() { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -474,8 +477,8 @@ public long getIn(int index) { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -496,8 +499,8 @@ public long getIn(int index) { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -516,8 +519,8 @@ public int getNotInCount() { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -775,20 +778,20 @@ public static build.buf.validate.SFixed64Rules parseFrom( } public static build.buf.validate.SFixed64Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -796,20 +799,20 @@ public static build.buf.validate.SFixed64Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -829,7 +832,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -841,7 +844,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.SFixed64Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.SFixed64Rules) build.buf.validate.SFixed64RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -850,7 +853,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -863,7 +866,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -935,38 +938,6 @@ private void buildPartialOneofs(build.buf.validate.SFixed64Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.SFixed64Rules) { @@ -1170,8 +1141,8 @@ public Builder clearGreaterThan() { * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -1190,8 +1161,8 @@ public boolean hasConst() { * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -1210,8 +1181,8 @@ public long getConst() { * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -1234,8 +1205,8 @@ public Builder setConst(long value) { * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -1258,8 +1229,8 @@ public Builder clearConst() { * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -1278,8 +1249,8 @@ public boolean hasLt() { * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -1301,8 +1272,8 @@ public long getLt() { * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -1326,8 +1297,8 @@ public Builder setLt(long value) { * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -1352,8 +1323,8 @@ public Builder clearLt() { * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -1372,8 +1343,8 @@ public boolean hasLte() { * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -1395,8 +1366,8 @@ public long getLte() { * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -1420,8 +1391,8 @@ public Builder setLte(long value) { * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -1448,14 +1419,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1476,14 +1447,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1507,14 +1478,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1540,14 +1511,14 @@ public Builder setGt(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1574,14 +1545,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1602,14 +1573,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1633,14 +1604,14 @@ public long getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1666,14 +1637,14 @@ public Builder setGte(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1711,8 +1682,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1733,8 +1704,8 @@ private void ensureInIsMutable(int capacity) { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1753,8 +1724,8 @@ public int getInCount() { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1774,8 +1745,8 @@ public long getIn(int index) { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1802,8 +1773,8 @@ public Builder setIn( * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1828,8 +1799,8 @@ public Builder addIn(long value) { * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1855,8 +1826,8 @@ public Builder addAllIn( * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -1892,8 +1863,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1914,8 +1885,8 @@ private void ensureNotInIsMutable(int capacity) { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1934,8 +1905,8 @@ public int getNotInCount() { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1955,8 +1926,8 @@ public long getNotIn(int index) { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1983,8 +1954,8 @@ public Builder setNotIn( * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2009,8 +1980,8 @@ public Builder addNotIn(long value) { * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2036,8 +2007,8 @@ public Builder addAllNotIn( * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2051,18 +2022,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.SFixed64Rules) } diff --git a/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java b/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java index ed5c5146..cdf9bd2d 100644 --- a/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface SFixed64RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface SFixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface SFixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface SFixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface SFixed64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface SFixed64RulesOrBuilder extends * * ```proto * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/SInt32Rules.java b/src/main/java/build/buf/validate/SInt32Rules.java index ae673437..ec81eedf 100644 --- a/src/main/java/build/buf/validate/SInt32Rules.java +++ b/src/main/java/build/buf/validate/SInt32Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.SInt32Rules} */ public final class SInt32Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt32Rules.class.getName()); + } // Use SInt32Rules.newBuilder() to construct. - private SInt32Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt32Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt32Rules() { @@ -25,20 +35,13 @@ private SInt32Rules() { notIn_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SInt32Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -182,8 +185,8 @@ public int getConst() { * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -203,8 +206,8 @@ public boolean hasLt() { * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -229,8 +232,8 @@ public int getLt() { * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -250,8 +253,8 @@ public boolean hasLte() { * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -278,14 +281,14 @@ public int getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -307,14 +310,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -341,14 +344,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -370,14 +373,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -405,8 +408,8 @@ public int getGte() { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -427,8 +430,8 @@ public int getGte() { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -447,8 +450,8 @@ public int getInCount() { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -474,8 +477,8 @@ public int getIn(int index) { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -496,8 +499,8 @@ public int getIn(int index) { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -516,8 +519,8 @@ public int getNotInCount() { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -776,20 +779,20 @@ public static build.buf.validate.SInt32Rules parseFrom( } public static build.buf.validate.SInt32Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -797,20 +800,20 @@ public static build.buf.validate.SInt32Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -830,7 +833,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -842,7 +845,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.SInt32Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.SInt32Rules) build.buf.validate.SInt32RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -851,7 +854,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -864,7 +867,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -936,38 +939,6 @@ private void buildPartialOneofs(build.buf.validate.SInt32Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.SInt32Rules) { @@ -1169,8 +1140,8 @@ public Builder clearGreaterThan() { * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -1189,8 +1160,8 @@ public boolean hasConst() { * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -1209,8 +1180,8 @@ public int getConst() { * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -1233,8 +1204,8 @@ public Builder setConst(int value) { * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -1257,8 +1228,8 @@ public Builder clearConst() { * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -1277,8 +1248,8 @@ public boolean hasLt() { * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -1300,8 +1271,8 @@ public int getLt() { * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -1325,8 +1296,8 @@ public Builder setLt(int value) { * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -1351,8 +1322,8 @@ public Builder clearLt() { * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -1371,8 +1342,8 @@ public boolean hasLte() { * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -1394,8 +1365,8 @@ public int getLte() { * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -1419,8 +1390,8 @@ public Builder setLte(int value) { * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -1447,14 +1418,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1475,14 +1446,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1506,14 +1477,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1539,14 +1510,14 @@ public Builder setGt(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1573,14 +1544,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1601,14 +1572,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1632,14 +1603,14 @@ public int getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1665,14 +1636,14 @@ public Builder setGte(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1704,8 +1675,8 @@ private void ensureInIsMutable() { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1726,8 +1697,8 @@ private void ensureInIsMutable() { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1746,8 +1717,8 @@ public int getInCount() { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1767,8 +1738,8 @@ public int getIn(int index) { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1795,8 +1766,8 @@ public Builder setIn( * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1821,8 +1792,8 @@ public Builder addIn(int value) { * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1848,8 +1819,8 @@ public Builder addAllIn( * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1879,8 +1850,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1901,8 +1872,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1921,8 +1892,8 @@ public int getNotInCount() { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1942,8 +1913,8 @@ public int getNotIn(int index) { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1970,8 +1941,8 @@ public Builder setNotIn( * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1996,8 +1967,8 @@ public Builder addNotIn(int value) { * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2023,8 +1994,8 @@ public Builder addAllNotIn( * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2038,18 +2009,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.SInt32Rules) } diff --git a/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java b/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java index 97b84bf9..2093dd69 100644 --- a/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface SInt32RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface SInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface SInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface SInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface SInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface SInt32RulesOrBuilder extends * * ```proto * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/SInt64Rules.java b/src/main/java/build/buf/validate/SInt64Rules.java index e0b0e33d..67cdfec4 100644 --- a/src/main/java/build/buf/validate/SInt64Rules.java +++ b/src/main/java/build/buf/validate/SInt64Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.SInt64Rules} */ public final class SInt64Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + SInt64Rules.class.getName()); + } // Use SInt64Rules.newBuilder() to construct. - private SInt64Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SInt64Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SInt64Rules() { @@ -25,20 +35,13 @@ private SInt64Rules() { notIn_ = emptyLongList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SInt64Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -182,8 +185,8 @@ public long getConst() { * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -203,8 +206,8 @@ public boolean hasLt() { * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -229,8 +232,8 @@ public long getLt() { * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -250,8 +253,8 @@ public boolean hasLte() { * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -278,14 +281,14 @@ public long getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -307,14 +310,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -341,14 +344,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -370,14 +373,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -405,8 +408,8 @@ public long getGte() { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -427,8 +430,8 @@ public long getGte() { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -447,8 +450,8 @@ public int getInCount() { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -474,8 +477,8 @@ public long getIn(int index) { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -496,8 +499,8 @@ public long getIn(int index) { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -516,8 +519,8 @@ public int getNotInCount() { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -781,20 +784,20 @@ public static build.buf.validate.SInt64Rules parseFrom( } public static build.buf.validate.SInt64Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -802,20 +805,20 @@ public static build.buf.validate.SInt64Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -835,7 +838,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -847,7 +850,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.SInt64Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.SInt64Rules) build.buf.validate.SInt64RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -856,7 +859,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -869,7 +872,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -941,38 +944,6 @@ private void buildPartialOneofs(build.buf.validate.SInt64Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.SInt64Rules) { @@ -1174,8 +1145,8 @@ public Builder clearGreaterThan() { * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -1194,8 +1165,8 @@ public boolean hasConst() { * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -1214,8 +1185,8 @@ public long getConst() { * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -1238,8 +1209,8 @@ public Builder setConst(long value) { * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -1262,8 +1233,8 @@ public Builder clearConst() { * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -1282,8 +1253,8 @@ public boolean hasLt() { * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -1305,8 +1276,8 @@ public long getLt() { * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -1330,8 +1301,8 @@ public Builder setLt(long value) { * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -1356,8 +1327,8 @@ public Builder clearLt() { * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -1376,8 +1347,8 @@ public boolean hasLte() { * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -1399,8 +1370,8 @@ public long getLte() { * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -1424,8 +1395,8 @@ public Builder setLte(long value) { * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -1452,14 +1423,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1480,14 +1451,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1511,14 +1482,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1544,14 +1515,14 @@ public Builder setGt(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1578,14 +1549,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1606,14 +1577,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1637,14 +1608,14 @@ public long getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1670,14 +1641,14 @@ public Builder setGte(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1709,8 +1680,8 @@ private void ensureInIsMutable() { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1731,8 +1702,8 @@ private void ensureInIsMutable() { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1751,8 +1722,8 @@ public int getInCount() { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1772,8 +1743,8 @@ public long getIn(int index) { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1800,8 +1771,8 @@ public Builder setIn( * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1826,8 +1797,8 @@ public Builder addIn(long value) { * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1853,8 +1824,8 @@ public Builder addAllIn( * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1884,8 +1855,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1906,8 +1877,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1926,8 +1897,8 @@ public int getNotInCount() { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1947,8 +1918,8 @@ public long getNotIn(int index) { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1975,8 +1946,8 @@ public Builder setNotIn( * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2001,8 +1972,8 @@ public Builder addNotIn(long value) { * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2028,8 +1999,8 @@ public Builder addAllNotIn( * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2043,18 +2014,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.SInt64Rules) } diff --git a/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java b/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java index b9bb6338..8998d76c 100644 --- a/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface SInt64RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface SInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface SInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface SInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface SInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface SInt64RulesOrBuilder extends * * ```proto * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/StringRules.java b/src/main/java/build/buf/validate/StringRules.java index 5170a777..1b121b8b 100644 --- a/src/main/java/build/buf/validate/StringRules.java +++ b/src/main/java/build/buf/validate/StringRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.StringRules} */ public final class StringRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + StringRules.class.getName()); + } // Use StringRules.newBuilder() to construct. - private StringRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StringRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringRules() { @@ -34,20 +44,13 @@ private StringRules() { com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -139,8 +142,8 @@ public int getNumber() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -188,8 +191,8 @@ public java.lang.String getConst() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -223,8 +226,8 @@ public java.lang.String getConst() { * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -245,8 +248,8 @@ public boolean hasLen() { * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -270,8 +273,8 @@ public long getLen() { * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -292,8 +295,8 @@ public boolean hasMinLen() { * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -317,8 +320,8 @@ public long getMinLen() { * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -339,8 +342,8 @@ public boolean hasMaxLen() { * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -363,8 +366,8 @@ public long getMaxLen() { * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -384,8 +387,8 @@ public boolean hasLenBytes() { * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -408,8 +411,8 @@ public long getLenBytes() { * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -430,8 +433,8 @@ public boolean hasMinBytes() { * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -450,13 +453,13 @@ public 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
+   * 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];
+   * // value length must be at most 8 bytes
+   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
    * }
    * ```
    * 
@@ -471,13 +474,13 @@ public 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
+   * 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];
+   * // value length must be at most 8 bytes
+   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
    * }
    * ```
    * 
@@ -502,8 +505,8 @@ public long getMaxBytes() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -524,8 +527,8 @@ public boolean hasPattern() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -555,8 +558,8 @@ public java.lang.String getPattern() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -585,14 +588,14 @@ public java.lang.String getPattern() { /** *
    * `prefix` specifies that the field value must have the
-   *specified substring at the beginning of the string. If the field value
+   * 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"];
+   * // value does not have prefix `pre`
+   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
    * }
    * ```
    * 
@@ -607,14 +610,14 @@ public boolean hasPrefix() { /** *
    * `prefix` specifies that the field value must have the
-   *specified substring at the beginning of the string. If the field value
+   * 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"];
+   * // value does not have prefix `pre`
+   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
    * }
    * ```
    * 
@@ -638,14 +641,14 @@ public 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
+   * 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"];
+   * // value does not have prefix `pre`
+   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
    * }
    * ```
    * 
@@ -674,13 +677,13 @@ public java.lang.String getPrefix() { /** *
    * `suffix` specifies that the field value must have the
-   *specified substring at the end of the string. If the field value doesn't
+   * 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"];
+   * // value does not have suffix `post`
+   * string value = 1 [(buf.validate.field).string.suffix = "post"];
    * }
    * ```
    * 
@@ -695,13 +698,13 @@ public 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
+   * 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"];
+   * // value does not have suffix `post`
+   * string value = 1 [(buf.validate.field).string.suffix = "post"];
    * }
    * ```
    * 
@@ -725,13 +728,13 @@ public 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
+   * 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"];
+   * // value does not have suffix `post`
+   * string value = 1 [(buf.validate.field).string.suffix = "post"];
    * }
    * ```
    * 
@@ -760,13 +763,13 @@ public java.lang.String getSuffix() { /** *
    * `contains` specifies that the field value must have the
-   *specified substring anywhere in the string. If the field value doesn't
+   * 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"];
+   * // value does not contain substring `inside`.
+   * string value = 1 [(buf.validate.field).string.contains = "inside"];
    * }
    * ```
    * 
@@ -781,13 +784,13 @@ public boolean hasContains() { /** *
    * `contains` specifies that the field value must have the
-   *specified substring anywhere in the string. If the field value doesn't
+   * 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"];
+   * // value does not contain substring `inside`.
+   * string value = 1 [(buf.validate.field).string.contains = "inside"];
    * }
    * ```
    * 
@@ -811,13 +814,13 @@ public 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
+   * 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"];
+   * // value does not contain substring `inside`.
+   * string value = 1 [(buf.validate.field).string.contains = "inside"];
    * }
    * ```
    * 
@@ -846,13 +849,13 @@ public java.lang.String getContains() { /** *
    * `not_contains` specifies that the field value must not have the
-   *specified substring anywhere in the string. If the field value contains
+   * 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"];
+   * // value contains substring `inside`.
+   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
    * }
    * ```
    * 
@@ -867,13 +870,13 @@ public boolean hasNotContains() { /** *
    * `not_contains` specifies that the field value must not have the
-   *specified substring anywhere in the string. If the field value contains
+   * 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"];
+   * // value contains substring `inside`.
+   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
    * }
    * ```
    * 
@@ -897,13 +900,13 @@ public 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
+   * 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"];
+   * // value contains substring `inside`.
+   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
    * }
    * ```
    * 
@@ -938,8 +941,8 @@ public java.lang.String getNotContains() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -959,8 +962,8 @@ public java.lang.String getNotContains() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -979,8 +982,8 @@ public int getInCount() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -1000,8 +1003,8 @@ public java.lang.String getIn(int index) { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -1026,8 +1029,8 @@ public java.lang.String getIn(int index) { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -1046,8 +1049,8 @@ public java.lang.String getIn(int index) { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -1065,8 +1068,8 @@ public int getNotInCount() { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -1085,8 +1088,8 @@ public java.lang.String getNotIn(int index) { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -1109,8 +1112,8 @@ public java.lang.String getNotIn(int index) { * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -1130,8 +1133,8 @@ public boolean hasEmail() { * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -1157,8 +1160,8 @@ public boolean getEmail() { * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -1179,8 +1182,8 @@ public boolean hasHostname() { * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -1206,8 +1209,8 @@ public boolean getHostname() { * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -1228,8 +1231,8 @@ public boolean hasIp() { * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -1254,8 +1257,8 @@ public boolean getIp() { * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -1275,8 +1278,8 @@ public boolean hasIpv4() { * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -1301,8 +1304,8 @@ public boolean getIpv4() { * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -1322,8 +1325,8 @@ public boolean hasIpv6() { * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -1348,8 +1351,8 @@ public boolean getIpv6() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -1369,8 +1372,8 @@ public boolean hasUri() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -1395,8 +1398,8 @@ public boolean getUri() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -1416,8 +1419,8 @@ public boolean hasUriRef() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -1444,8 +1447,8 @@ public boolean getUriRef() { * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -1467,8 +1470,8 @@ public boolean hasAddress() { * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -1493,8 +1496,8 @@ public boolean getAddress() { * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -1514,8 +1517,8 @@ public boolean hasUuid() { * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -1541,8 +1544,8 @@ public boolean getUuid() { * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -1563,8 +1566,8 @@ public boolean hasTuuid() { * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -1590,8 +1593,8 @@ public boolean getTuuid() { * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -1612,8 +1615,8 @@ public boolean hasIpWithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -1639,8 +1642,8 @@ public boolean getIpWithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -1661,8 +1664,8 @@ public boolean hasIpv4WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -1688,8 +1691,8 @@ public boolean getIpv4WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -1710,8 +1713,8 @@ public boolean hasIpv6WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -1737,8 +1740,8 @@ public boolean getIpv6WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -1759,8 +1762,8 @@ public boolean hasIpPrefix() { * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -1786,8 +1789,8 @@ public boolean getIpPrefix() { * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -1808,8 +1811,8 @@ public boolean hasIpv4Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -1835,8 +1838,8 @@ public boolean getIpv4Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -1857,8 +1860,8 @@ public boolean hasIpv6Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -1918,8 +1921,8 @@ public boolean getHostAndPort() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -1948,8 +1951,8 @@ public boolean hasWellKnownRegex() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -1981,8 +1984,8 @@ public int getWellKnownRegexValue() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -2021,8 +2024,8 @@ public build.buf.validate.KnownRegex getWellKnownRegex() { * * ```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]; + * // 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]; * } * ``` * @@ -2044,8 +2047,8 @@ public boolean hasStrict() { * * ```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]; + * // 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]; * } * ``` * @@ -2073,7 +2076,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, const_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, const_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt64(2, minLen_); @@ -2088,22 +2091,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt64(5, maxBytes_); } if (((bitField0_ & 0x00000080) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pattern_); + com.google.protobuf.GeneratedMessage.writeString(output, 6, pattern_); } if (((bitField0_ & 0x00000100) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, prefix_); + com.google.protobuf.GeneratedMessage.writeString(output, 7, prefix_); } if (((bitField0_ & 0x00000200) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, suffix_); + com.google.protobuf.GeneratedMessage.writeString(output, 8, suffix_); } if (((bitField0_ & 0x00000400) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, contains_); + com.google.protobuf.GeneratedMessage.writeString(output, 9, contains_); } for (int i = 0; i < in_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, in_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 10, in_.getRaw(i)); } for (int i = 0; i < notIn_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, notIn_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 11, notIn_.getRaw(i)); } if (wellKnownCase_ == 12) { output.writeBool( @@ -2148,7 +2151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 22, (boolean)((java.lang.Boolean) wellKnown_)); } if (((bitField0_ & 0x00000800) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, notContains_); + com.google.protobuf.GeneratedMessage.writeString(output, 23, notContains_); } if (wellKnownCase_ == 24) { output.writeEnum(24, ((java.lang.Integer) wellKnown_)); @@ -2198,7 +2201,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, const_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, const_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -2217,16 +2220,16 @@ public int getSerializedSize() { .computeUInt64Size(5, maxBytes_); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pattern_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, pattern_); } if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, prefix_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, prefix_); } if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, suffix_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, suffix_); } if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, contains_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, contains_); } { int dataSize = 0; @@ -2298,7 +2301,7 @@ public int getSerializedSize() { 22, (boolean)((java.lang.Boolean) wellKnown_)); } if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notContains_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(23, notContains_); } if (wellKnownCase_ == 24) { size += com.google.protobuf.CodedOutputStream @@ -2719,20 +2722,20 @@ public static build.buf.validate.StringRules parseFrom( } public static build.buf.validate.StringRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -2740,20 +2743,20 @@ public static build.buf.validate.StringRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -2773,7 +2776,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2786,7 +2789,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.StringRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.StringRules) build.buf.validate.StringRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -2795,7 +2798,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -2808,7 +2811,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -2946,38 +2949,6 @@ private void buildPartialOneofs(build.buf.validate.StringRules result) { result.wellKnown_ = this.wellKnown_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.StringRules) { @@ -3373,8 +3344,8 @@ public Builder clearWellKnown() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -3392,8 +3363,8 @@ public boolean hasConst() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -3420,8 +3391,8 @@ public java.lang.String getConst() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -3449,8 +3420,8 @@ public java.lang.String getConst() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -3474,8 +3445,8 @@ public Builder setConst( * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -3496,8 +3467,8 @@ public Builder clearConst() { * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -3526,8 +3497,8 @@ public Builder setConstBytes( * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -3548,8 +3519,8 @@ public boolean hasLen() { * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -3570,8 +3541,8 @@ public long getLen() { * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -3596,8 +3567,8 @@ public Builder setLen(long value) { * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -3622,8 +3593,8 @@ public Builder clearLen() { * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -3644,8 +3615,8 @@ public boolean hasMinLen() { * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -3666,8 +3637,8 @@ public long getMinLen() { * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -3692,8 +3663,8 @@ public Builder setMinLen(long value) { * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -3718,8 +3689,8 @@ public Builder clearMinLen() { * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -3740,8 +3711,8 @@ public boolean hasMaxLen() { * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -3762,8 +3733,8 @@ public long getMaxLen() { * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -3788,8 +3759,8 @@ public Builder setMaxLen(long value) { * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -3813,8 +3784,8 @@ public Builder clearMaxLen() { * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -3834,8 +3805,8 @@ public boolean hasLenBytes() { * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -3855,8 +3826,8 @@ public long getLenBytes() { * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -3880,8 +3851,8 @@ public Builder setLenBytes(long value) { * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -3905,8 +3876,8 @@ public Builder clearLenBytes() { * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -3927,8 +3898,8 @@ public boolean hasMinBytes() { * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -3949,8 +3920,8 @@ public long getMinBytes() { * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -3975,8 +3946,8 @@ public Builder setMinBytes(long value) { * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -3996,13 +3967,13 @@ public Builder clearMinBytes() { /** *
      * `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
+     * 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];
+     * // value length must be at most 8 bytes
+     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
      * }
      * ```
      * 
@@ -4017,13 +3988,13 @@ public 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
+     * 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];
+     * // value length must be at most 8 bytes
+     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
      * }
      * ```
      * 
@@ -4038,13 +4009,13 @@ public long getMaxBytes() { /** *
      * `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
+     * 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];
+     * // value length must be at most 8 bytes
+     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
      * }
      * ```
      * 
@@ -4063,13 +4034,13 @@ public Builder setMaxBytes(long value) { /** *
      * `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
+     * 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];
+     * // value length must be at most 8 bytes
+     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
      * }
      * ```
      * 
@@ -4094,8 +4065,8 @@ public Builder clearMaxBytes() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -4115,8 +4086,8 @@ public boolean hasPattern() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -4145,8 +4116,8 @@ public java.lang.String getPattern() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -4176,8 +4147,8 @@ public java.lang.String getPattern() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -4203,8 +4174,8 @@ public Builder setPattern( * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -4227,8 +4198,8 @@ public Builder clearPattern() { * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -4251,14 +4222,14 @@ public Builder setPatternBytes( /** *
      * `prefix` specifies that the field value must have the
-     *specified substring at the beginning of the string. If the field value
+     * 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"];
+     * // value does not have prefix `pre`
+     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
      * }
      * ```
      * 
@@ -4272,14 +4243,14 @@ public boolean hasPrefix() { /** *
      * `prefix` specifies that the field value must have the
-     *specified substring at the beginning of the string. If the field value
+     * 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"];
+     * // value does not have prefix `pre`
+     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
      * }
      * ```
      * 
@@ -4302,14 +4273,14 @@ public 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
+     * 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"];
+     * // value does not have prefix `pre`
+     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
      * }
      * ```
      * 
@@ -4333,14 +4304,14 @@ public 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
+     * 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"];
+     * // value does not have prefix `pre`
+     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
      * }
      * ```
      * 
@@ -4360,14 +4331,14 @@ public Builder setPrefix( /** *
      * `prefix` specifies that the field value must have the
-     *specified substring at the beginning of the string. If the field value
+     * 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"];
+     * // value does not have prefix `pre`
+     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
      * }
      * ```
      * 
@@ -4384,14 +4355,14 @@ public Builder clearPrefix() { /** *
      * `prefix` specifies that the field value must have the
-     *specified substring at the beginning of the string. If the field value
+     * 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"];
+     * // value does not have prefix `pre`
+     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
      * }
      * ```
      * 
@@ -4414,13 +4385,13 @@ public Builder setPrefixBytes( /** *
      * `suffix` specifies that the field value must have the
-     *specified substring at the end of the string. If the field value doesn't
+     * 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"];
+     * // value does not have suffix `post`
+     * string value = 1 [(buf.validate.field).string.suffix = "post"];
      * }
      * ```
      * 
@@ -4434,13 +4405,13 @@ public 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
+     * 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"];
+     * // value does not have suffix `post`
+     * string value = 1 [(buf.validate.field).string.suffix = "post"];
      * }
      * ```
      * 
@@ -4463,13 +4434,13 @@ public 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
+     * 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"];
+     * // value does not have suffix `post`
+     * string value = 1 [(buf.validate.field).string.suffix = "post"];
      * }
      * ```
      * 
@@ -4493,13 +4464,13 @@ public 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
+     * 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"];
+     * // value does not have suffix `post`
+     * string value = 1 [(buf.validate.field).string.suffix = "post"];
      * }
      * ```
      * 
@@ -4519,13 +4490,13 @@ public Builder setSuffix( /** *
      * `suffix` specifies that the field value must have the
-     *specified substring at the end of the string. If the field value doesn't
+     * 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"];
+     * // value does not have suffix `post`
+     * string value = 1 [(buf.validate.field).string.suffix = "post"];
      * }
      * ```
      * 
@@ -4542,13 +4513,13 @@ public Builder clearSuffix() { /** *
      * `suffix` specifies that the field value must have the
-     *specified substring at the end of the string. If the field value doesn't
+     * 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"];
+     * // value does not have suffix `post`
+     * string value = 1 [(buf.validate.field).string.suffix = "post"];
      * }
      * ```
      * 
@@ -4571,13 +4542,13 @@ public Builder setSuffixBytes( /** *
      * `contains` specifies that the field value must have the
-     *specified substring anywhere in the string. If the field value doesn't
+     * 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"];
+     * // value does not contain substring `inside`.
+     * string value = 1 [(buf.validate.field).string.contains = "inside"];
      * }
      * ```
      * 
@@ -4591,13 +4562,13 @@ public boolean hasContains() { /** *
      * `contains` specifies that the field value must have the
-     *specified substring anywhere in the string. If the field value doesn't
+     * 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"];
+     * // value does not contain substring `inside`.
+     * string value = 1 [(buf.validate.field).string.contains = "inside"];
      * }
      * ```
      * 
@@ -4620,13 +4591,13 @@ public 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
+     * 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"];
+     * // value does not contain substring `inside`.
+     * string value = 1 [(buf.validate.field).string.contains = "inside"];
      * }
      * ```
      * 
@@ -4650,13 +4621,13 @@ public 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
+     * 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"];
+     * // value does not contain substring `inside`.
+     * string value = 1 [(buf.validate.field).string.contains = "inside"];
      * }
      * ```
      * 
@@ -4676,13 +4647,13 @@ public Builder setContains( /** *
      * `contains` specifies that the field value must have the
-     *specified substring anywhere in the string. If the field value doesn't
+     * 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"];
+     * // value does not contain substring `inside`.
+     * string value = 1 [(buf.validate.field).string.contains = "inside"];
      * }
      * ```
      * 
@@ -4699,13 +4670,13 @@ public Builder clearContains() { /** *
      * `contains` specifies that the field value must have the
-     *specified substring anywhere in the string. If the field value doesn't
+     * 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"];
+     * // value does not contain substring `inside`.
+     * string value = 1 [(buf.validate.field).string.contains = "inside"];
      * }
      * ```
      * 
@@ -4728,13 +4699,13 @@ public Builder setContainsBytes( /** *
      * `not_contains` specifies that the field value must not have the
-     *specified substring anywhere in the string. If the field value contains
+     * 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"];
+     * // value contains substring `inside`.
+     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
      * }
      * ```
      * 
@@ -4748,13 +4719,13 @@ public boolean hasNotContains() { /** *
      * `not_contains` specifies that the field value must not have the
-     *specified substring anywhere in the string. If the field value contains
+     * 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"];
+     * // value contains substring `inside`.
+     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
      * }
      * ```
      * 
@@ -4777,13 +4748,13 @@ public 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
+     * 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"];
+     * // value contains substring `inside`.
+     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
      * }
      * ```
      * 
@@ -4807,13 +4778,13 @@ public 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
+     * 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"];
+     * // value contains substring `inside`.
+     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
      * }
      * ```
      * 
@@ -4833,13 +4804,13 @@ public Builder setNotContains( /** *
      * `not_contains` specifies that the field value must not have the
-     *specified substring anywhere in the string. If the field value contains
+     * 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"];
+     * // value contains substring `inside`.
+     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
      * }
      * ```
      * 
@@ -4856,13 +4827,13 @@ public Builder clearNotContains() { /** *
      * `not_contains` specifies that the field value must not have the
-     *specified substring anywhere in the string. If the field value contains
+     * 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"];
+     * // value contains substring `inside`.
+     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
      * }
      * ```
      * 
@@ -4897,8 +4868,8 @@ private void ensureInIsMutable() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -4919,8 +4890,8 @@ private void ensureInIsMutable() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -4939,8 +4910,8 @@ public int getInCount() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -4960,8 +4931,8 @@ public java.lang.String getIn(int index) { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -4982,8 +4953,8 @@ public java.lang.String getIn(int index) { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -5010,8 +4981,8 @@ public Builder setIn( * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -5037,8 +5008,8 @@ public Builder addIn( * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -5064,8 +5035,8 @@ public Builder addAllIn( * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -5088,8 +5059,8 @@ public Builder clearIn() { * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -5124,8 +5095,8 @@ private void ensureNotInIsMutable() { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5145,8 +5116,8 @@ private void ensureNotInIsMutable() { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5164,8 +5135,8 @@ public int getNotInCount() { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5184,8 +5155,8 @@ public java.lang.String getNotIn(int index) { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5205,8 +5176,8 @@ public java.lang.String getNotIn(int index) { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5232,8 +5203,8 @@ public Builder setNotIn( * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5258,8 +5229,8 @@ public Builder addNotIn( * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5284,8 +5255,8 @@ public Builder addAllNotIn( * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5307,8 +5278,8 @@ public Builder clearNotIn() { * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -5336,8 +5307,8 @@ public Builder addNotInBytes( * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -5356,8 +5327,8 @@ public boolean hasEmail() { * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -5379,8 +5350,8 @@ public boolean getEmail() { * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -5404,8 +5375,8 @@ public Builder setEmail(boolean value) { * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -5431,8 +5402,8 @@ public Builder clearEmail() { * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -5452,8 +5423,8 @@ public boolean hasHostname() { * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -5476,8 +5447,8 @@ public boolean getHostname() { * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -5502,8 +5473,8 @@ public Builder setHostname(boolean value) { * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -5529,8 +5500,8 @@ public Builder clearHostname() { * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -5550,8 +5521,8 @@ public boolean hasIp() { * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -5574,8 +5545,8 @@ public boolean getIp() { * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -5600,8 +5571,8 @@ public Builder setIp(boolean value) { * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -5626,8 +5597,8 @@ public Builder clearIp() { * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -5646,8 +5617,8 @@ public boolean hasIpv4() { * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -5669,8 +5640,8 @@ public boolean getIpv4() { * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -5694,8 +5665,8 @@ public Builder setIpv4(boolean value) { * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -5720,8 +5691,8 @@ public Builder clearIpv4() { * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -5740,8 +5711,8 @@ public boolean hasIpv6() { * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -5763,8 +5734,8 @@ public boolean getIpv6() { * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -5788,8 +5759,8 @@ public Builder setIpv6(boolean value) { * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -5814,8 +5785,8 @@ public Builder clearIpv6() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -5834,8 +5805,8 @@ public boolean hasUri() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -5857,8 +5828,8 @@ public boolean getUri() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -5882,8 +5853,8 @@ public Builder setUri(boolean value) { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -5908,8 +5879,8 @@ public Builder clearUri() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -5928,8 +5899,8 @@ public boolean hasUriRef() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -5951,8 +5922,8 @@ public boolean getUriRef() { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -5976,8 +5947,8 @@ public Builder setUriRef(boolean value) { * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -6004,8 +5975,8 @@ public Builder clearUriRef() { * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -6026,8 +5997,8 @@ public boolean hasAddress() { * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -6051,8 +6022,8 @@ public boolean getAddress() { * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -6078,8 +6049,8 @@ public Builder setAddress(boolean value) { * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -6104,8 +6075,8 @@ public Builder clearAddress() { * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -6124,8 +6095,8 @@ public boolean hasUuid() { * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -6147,8 +6118,8 @@ public boolean getUuid() { * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -6172,8 +6143,8 @@ public Builder setUuid(boolean value) { * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -6199,8 +6170,8 @@ public Builder clearUuid() { * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -6220,8 +6191,8 @@ public boolean hasTuuid() { * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -6244,8 +6215,8 @@ public boolean getTuuid() { * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -6270,8 +6241,8 @@ public Builder setTuuid(boolean value) { * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -6297,8 +6268,8 @@ public Builder clearTuuid() { * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -6318,8 +6289,8 @@ public boolean hasIpWithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -6342,8 +6313,8 @@ public boolean getIpWithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -6368,8 +6339,8 @@ public Builder setIpWithPrefixlen(boolean value) { * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -6395,8 +6366,8 @@ public Builder clearIpWithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -6416,8 +6387,8 @@ public boolean hasIpv4WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -6440,8 +6411,8 @@ public boolean getIpv4WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -6466,8 +6437,8 @@ public Builder setIpv4WithPrefixlen(boolean value) { * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -6493,8 +6464,8 @@ public Builder clearIpv4WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -6514,8 +6485,8 @@ public boolean hasIpv6WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -6538,8 +6509,8 @@ public boolean getIpv6WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -6564,8 +6535,8 @@ public Builder setIpv6WithPrefixlen(boolean value) { * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -6591,8 +6562,8 @@ public Builder clearIpv6WithPrefixlen() { * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -6612,8 +6583,8 @@ public boolean hasIpPrefix() { * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -6636,8 +6607,8 @@ public boolean getIpPrefix() { * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -6662,8 +6633,8 @@ public Builder setIpPrefix(boolean value) { * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -6689,8 +6660,8 @@ public Builder clearIpPrefix() { * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -6710,8 +6681,8 @@ public boolean hasIpv4Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -6734,8 +6705,8 @@ public boolean getIpv4Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -6760,8 +6731,8 @@ public Builder setIpv4Prefix(boolean value) { * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -6787,8 +6758,8 @@ public Builder clearIpv4Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -6808,8 +6779,8 @@ public boolean hasIpv6Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -6832,8 +6803,8 @@ public boolean getIpv6Prefix() { * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -6858,8 +6829,8 @@ public Builder setIpv6Prefix(boolean value) { * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -6954,8 +6925,8 @@ public Builder clearHostAndPort() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -6985,8 +6956,8 @@ public boolean hasWellKnownRegex() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -7019,8 +6990,8 @@ public int getWellKnownRegexValue() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -7053,8 +7024,8 @@ public Builder setWellKnownRegexValue(int value) { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -7089,8 +7060,8 @@ public build.buf.validate.KnownRegex getWellKnownRegex() { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -7126,8 +7097,8 @@ public Builder setWellKnownRegex(build.buf.validate.KnownRegex value) { * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -7165,8 +7136,8 @@ public Builder clearWellKnownRegex() { * * ```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]; + * // 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]; * } * ``` * @@ -7188,8 +7159,8 @@ public boolean hasStrict() { * * ```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]; + * // 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]; * } * ``` * @@ -7211,8 +7182,8 @@ public boolean getStrict() { * * ```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]; + * // 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]; * } * ``` * @@ -7238,8 +7209,8 @@ public Builder setStrict(boolean value) { * * ```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]; + * // 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]; * } * ``` * @@ -7253,18 +7224,6 @@ public Builder clearStrict() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.StringRules) } diff --git a/src/main/java/build/buf/validate/StringRulesOrBuilder.java b/src/main/java/build/buf/validate/StringRulesOrBuilder.java index 18e55c63..bb5bb071 100644 --- a/src/main/java/build/buf/validate/StringRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/StringRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface StringRulesOrBuilder extends @@ -15,8 +16,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -32,8 +33,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -49,8 +50,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; * } * ``` * @@ -70,8 +71,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -89,8 +90,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; * } * ``` * @@ -109,8 +110,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -128,8 +129,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; * } * ``` * @@ -148,8 +149,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -167,8 +168,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; * } * ``` * @@ -186,8 +187,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -204,8 +205,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; * } * ``` * @@ -223,8 +224,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -242,8 +243,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; * } * * ``` @@ -257,13 +258,13 @@ public interface StringRulesOrBuilder extends /** *
    * `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
+   * 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];
+   * // value length must be at most 8 bytes
+   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
    * }
    * ```
    * 
@@ -275,13 +276,13 @@ public interface StringRulesOrBuilder extends /** *
    * `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
+   * 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];
+   * // value length must be at most 8 bytes
+   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
    * }
    * ```
    * 
@@ -300,8 +301,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -319,8 +320,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -338,8 +339,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; * } * ``` * @@ -353,14 +354,14 @@ public interface StringRulesOrBuilder extends /** *
    * `prefix` specifies that the field value must have the
-   *specified substring at the beginning of the string. If the field value
+   * 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"];
+   * // value does not have prefix `pre`
+   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
    * }
    * ```
    * 
@@ -372,14 +373,14 @@ public interface StringRulesOrBuilder extends /** *
    * `prefix` specifies that the field value must have the
-   *specified substring at the beginning of the string. If the field value
+   * 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"];
+   * // value does not have prefix `pre`
+   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
    * }
    * ```
    * 
@@ -391,14 +392,14 @@ public interface StringRulesOrBuilder extends /** *
    * `prefix` specifies that the field value must have the
-   *specified substring at the beginning of the string. If the field value
+   * 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"];
+   * // value does not have prefix `pre`
+   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
    * }
    * ```
    * 
@@ -412,13 +413,13 @@ public interface StringRulesOrBuilder extends /** *
    * `suffix` specifies that the field value must have the
-   *specified substring at the end of the string. If the field value doesn't
+   * 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"];
+   * // value does not have suffix `post`
+   * string value = 1 [(buf.validate.field).string.suffix = "post"];
    * }
    * ```
    * 
@@ -430,13 +431,13 @@ public interface StringRulesOrBuilder extends /** *
    * `suffix` specifies that the field value must have the
-   *specified substring at the end of the string. If the field value doesn't
+   * 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"];
+   * // value does not have suffix `post`
+   * string value = 1 [(buf.validate.field).string.suffix = "post"];
    * }
    * ```
    * 
@@ -448,13 +449,13 @@ public interface StringRulesOrBuilder extends /** *
    * `suffix` specifies that the field value must have the
-   *specified substring at the end of the string. If the field value doesn't
+   * 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"];
+   * // value does not have suffix `post`
+   * string value = 1 [(buf.validate.field).string.suffix = "post"];
    * }
    * ```
    * 
@@ -468,13 +469,13 @@ public interface StringRulesOrBuilder extends /** *
    * `contains` specifies that the field value must have the
-   *specified substring anywhere in the string. If the field value doesn't
+   * 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"];
+   * // value does not contain substring `inside`.
+   * string value = 1 [(buf.validate.field).string.contains = "inside"];
    * }
    * ```
    * 
@@ -486,13 +487,13 @@ public interface StringRulesOrBuilder extends /** *
    * `contains` specifies that the field value must have the
-   *specified substring anywhere in the string. If the field value doesn't
+   * 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"];
+   * // value does not contain substring `inside`.
+   * string value = 1 [(buf.validate.field).string.contains = "inside"];
    * }
    * ```
    * 
@@ -504,13 +505,13 @@ public interface StringRulesOrBuilder extends /** *
    * `contains` specifies that the field value must have the
-   *specified substring anywhere in the string. If the field value doesn't
+   * 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"];
+   * // value does not contain substring `inside`.
+   * string value = 1 [(buf.validate.field).string.contains = "inside"];
    * }
    * ```
    * 
@@ -524,13 +525,13 @@ public interface StringRulesOrBuilder extends /** *
    * `not_contains` specifies that the field value must not have the
-   *specified substring anywhere in the string. If the field value contains
+   * 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"];
+   * // value contains substring `inside`.
+   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
    * }
    * ```
    * 
@@ -542,13 +543,13 @@ public interface StringRulesOrBuilder extends /** *
    * `not_contains` specifies that the field value must not have the
-   *specified substring anywhere in the string. If the field value contains
+   * 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"];
+   * // value contains substring `inside`.
+   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
    * }
    * ```
    * 
@@ -560,13 +561,13 @@ public interface StringRulesOrBuilder extends /** *
    * `not_contains` specifies that the field value must not have the
-   *specified substring anywhere in the string. If the field value contains
+   * 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"];
+   * // value contains substring `inside`.
+   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
    * }
    * ```
    * 
@@ -585,8 +586,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -604,8 +605,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -622,8 +623,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -641,8 +642,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; * } * ``` * @@ -661,8 +662,8 @@ public interface StringRulesOrBuilder extends * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -679,8 +680,8 @@ public interface StringRulesOrBuilder extends * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -696,8 +697,8 @@ public interface StringRulesOrBuilder extends * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -714,8 +715,8 @@ public interface StringRulesOrBuilder extends * an error message will be generated. * ```proto * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; * } * ``` * @@ -735,8 +736,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -753,8 +754,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; * } * ``` * @@ -773,8 +774,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -792,8 +793,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; * } * ``` * @@ -812,8 +813,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -831,8 +832,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; * } * ``` * @@ -850,8 +851,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -868,8 +869,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; * } * ``` * @@ -887,8 +888,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -905,8 +906,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; * } * ``` * @@ -924,8 +925,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -942,8 +943,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; * } * ``` * @@ -961,8 +962,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -979,8 +980,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; * } * ``` * @@ -1000,8 +1001,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -1020,8 +1021,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; * } * ``` * @@ -1039,8 +1040,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -1057,8 +1058,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; * } * ``` * @@ -1077,8 +1078,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -1096,8 +1097,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid trimmed UUID - * string value = 1 [(buf.validate.field).string.tuuid = true]; + * // value must be a valid trimmed UUID + * string value = 1 [(buf.validate.field).string.tuuid = true]; * } * ``` * @@ -1116,8 +1117,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -1135,8 +1136,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; * } * ``` * @@ -1155,8 +1156,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -1174,8 +1175,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv4 address with prefix length - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * // value must be a valid IPv4 address with prefix length + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; * } * ``` * @@ -1194,8 +1195,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -1213,8 +1214,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; * } * ``` * @@ -1233,8 +1234,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -1252,8 +1253,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; * } * ``` * @@ -1272,8 +1273,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -1291,8 +1292,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; * } * ``` * @@ -1311,8 +1312,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -1330,8 +1331,8 @@ public interface StringRulesOrBuilder extends * * ```proto * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; * } * ``` * @@ -1374,8 +1375,8 @@ public interface StringRulesOrBuilder extends * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -1402,8 +1403,8 @@ public interface StringRulesOrBuilder extends * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -1430,8 +1431,8 @@ public interface StringRulesOrBuilder extends * * ```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]; + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; * } * ``` * @@ -1461,8 +1462,8 @@ public interface StringRulesOrBuilder extends * * ```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]; + * // 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]; * } * ``` * @@ -1481,8 +1482,8 @@ public interface StringRulesOrBuilder extends * * ```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]; + * // 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]; * } * ``` * diff --git a/src/main/java/build/buf/validate/TimestampRules.java b/src/main/java/build/buf/validate/TimestampRules.java index fa755d87..4e704bc1 100644 --- a/src/main/java/build/buf/validate/TimestampRules.java +++ b/src/main/java/build/buf/validate/TimestampRules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -12,31 +13,33 @@ * Protobuf type {@code buf.validate.TimestampRules} */ public final class TimestampRules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + TimestampRules.class.getName()); + } // Use TimestampRules.newBuilder() to construct. - private TimestampRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TimestampRules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TimestampRules() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TimestampRules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -159,8 +162,8 @@ public boolean hasConst() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -178,8 +181,8 @@ public com.google.protobuf.Timestamp getConst() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -198,8 +201,8 @@ public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -217,8 +220,8 @@ public boolean hasLt() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -239,8 +242,8 @@ public com.google.protobuf.Timestamp getLt() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -262,8 +265,8 @@ public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -281,8 +284,8 @@ public boolean hasLte() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -303,8 +306,8 @@ public com.google.protobuf.Timestamp getLte() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -326,8 +329,8 @@ public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() { * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -345,8 +348,8 @@ public boolean hasLtNow() { * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -373,14 +376,14 @@ public boolean getLtNow() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -402,14 +405,14 @@ public boolean hasGt() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -434,14 +437,14 @@ public com.google.protobuf.Timestamp getGt() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -467,14 +470,14 @@ public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -496,14 +499,14 @@ public boolean hasGte() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -528,14 +531,14 @@ public com.google.protobuf.Timestamp getGte() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -557,8 +560,8 @@ public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() { * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -576,8 +579,8 @@ public boolean hasGtNow() { * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -601,8 +604,8 @@ public boolean getGtNow() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -620,8 +623,8 @@ public boolean hasWithin() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -639,8 +642,8 @@ public com.google.protobuf.Duration getWithin() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -886,20 +889,20 @@ public static build.buf.validate.TimestampRules parseFrom( } public static build.buf.validate.TimestampRules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -907,20 +910,20 @@ public static build.buf.validate.TimestampRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -940,7 +943,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -952,7 +955,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.TimestampRules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.TimestampRules) build.buf.validate.TimestampRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -961,7 +964,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -974,12 +977,12 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 + if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getConstFieldBuilder(); getWithinFieldBuilder(); @@ -1088,38 +1091,6 @@ private void buildPartialOneofs(build.buf.validate.TimestampRules result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.TimestampRules) { @@ -1298,7 +1269,7 @@ public Builder clearGreaterThan() { private int bitField0_; private com.google.protobuf.Timestamp const_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> constBuilder_; /** *
@@ -1306,8 +1277,8 @@ public Builder clearGreaterThan() {
      *
      * ```proto
      * message MyTimestamp {
-     *   // value must equal 2023-05-03T10:00:00Z
-     *   google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
+     * // value must equal 2023-05-03T10:00:00Z
+     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
      * }
      * ```
      * 
@@ -1324,8 +1295,8 @@ public boolean hasConst() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1346,8 +1317,8 @@ public com.google.protobuf.Timestamp getConst() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1373,8 +1344,8 @@ public Builder setConst(com.google.protobuf.Timestamp value) { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1398,8 +1369,8 @@ public Builder setConst( * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1430,8 +1401,8 @@ public Builder mergeConst(com.google.protobuf.Timestamp value) { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1454,8 +1425,8 @@ public Builder clearConst() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1473,8 +1444,8 @@ public com.google.protobuf.Timestamp.Builder getConstBuilder() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -1495,19 +1466,19 @@ public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() { * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getConstFieldBuilder() { if (constBuilder_ == null) { - constBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + constBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getConst(), getParentForChildren(), @@ -1517,7 +1488,7 @@ public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() { return constBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ltBuilder_; /** *
@@ -1525,8 +1496,8 @@ public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() {
      *
      * ```proto
      * message MyDuration {
-     *   // duration must be less than 'P3D' [duration.lt]
-     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
+     * // duration must be less than 'P3D' [duration.lt]
+     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
      * }
      * ```
      * 
@@ -1544,8 +1515,8 @@ public boolean hasLt() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1573,8 +1544,8 @@ public com.google.protobuf.Timestamp getLt() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1600,8 +1571,8 @@ public Builder setLt(com.google.protobuf.Timestamp value) { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1625,8 +1596,8 @@ public Builder setLt( * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1659,8 +1630,8 @@ public Builder mergeLt(com.google.protobuf.Timestamp value) { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1689,8 +1660,8 @@ public Builder clearLt() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1706,8 +1677,8 @@ public com.google.protobuf.Timestamp.Builder getLtBuilder() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -1731,22 +1702,22 @@ public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() { * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLtFieldBuilder() { if (ltBuilder_ == null) { if (!(lessThanCase_ == 3)) { lessThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - ltBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -1758,7 +1729,7 @@ public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() { return ltBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lteBuilder_; /** *
@@ -1766,8 +1737,8 @@ public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() {
      *
      * ```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 }];
+     * // 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 }];
      * }
      * ```
      * 
@@ -1785,8 +1756,8 @@ public boolean hasLte() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1814,8 +1785,8 @@ public com.google.protobuf.Timestamp getLte() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1841,8 +1812,8 @@ public Builder setLte(com.google.protobuf.Timestamp value) { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1866,8 +1837,8 @@ public Builder setLte( * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1900,8 +1871,8 @@ public Builder mergeLte(com.google.protobuf.Timestamp value) { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1930,8 +1901,8 @@ public Builder clearLte() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1947,8 +1918,8 @@ public com.google.protobuf.Timestamp.Builder getLteBuilder() { * * ```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 }]; + * // 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 }]; * } * ``` * @@ -1972,22 +1943,22 @@ public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() { * * ```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 }]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLteFieldBuilder() { if (lteBuilder_ == null) { if (!(lessThanCase_ == 4)) { lessThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - lteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2005,8 +1976,8 @@ public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() { * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -2023,8 +1994,8 @@ public boolean hasLtNow() { * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -2044,8 +2015,8 @@ public boolean getLtNow() { * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -2067,8 +2038,8 @@ public Builder setLtNow(boolean value) { * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -2085,7 +2056,7 @@ public Builder clearLtNow() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> gtBuilder_; /** *
@@ -2097,14 +2068,14 @@ public Builder clearLtNow() {
      *
      * ```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' [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-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 } }];
+     * // 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 } }];
      * }
      * ```
      * 
@@ -2126,14 +2097,14 @@ public boolean hasGt() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2165,14 +2136,14 @@ public com.google.protobuf.Timestamp getGt() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2202,14 +2173,14 @@ public Builder setGt(com.google.protobuf.Timestamp value) { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2237,14 +2208,14 @@ public Builder setGt( * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2281,14 +2252,14 @@ public Builder mergeGt(com.google.protobuf.Timestamp value) { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2321,14 +2292,14 @@ public Builder clearGt() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2348,14 +2319,14 @@ public com.google.protobuf.Timestamp.Builder getGtBuilder() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2383,28 +2354,28 @@ public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() { * * ```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' [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-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 } }]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getGtFieldBuilder() { if (gtBuilder_ == null) { if (!(greaterThanCase_ == 5)) { greaterThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - gtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2416,7 +2387,7 @@ public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() { return gtBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> gteBuilder_; /** *
@@ -2428,14 +2399,14 @@ public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() {
      *
      * ```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' [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-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 } }];
+     * // 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 } }];
      * }
      * ```
      * 
@@ -2457,14 +2428,14 @@ public boolean hasGte() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2496,14 +2467,14 @@ public com.google.protobuf.Timestamp getGte() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2533,14 +2504,14 @@ public Builder setGte(com.google.protobuf.Timestamp value) { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2568,14 +2539,14 @@ public Builder setGte( * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2612,14 +2583,14 @@ public Builder mergeGte(com.google.protobuf.Timestamp value) { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2652,14 +2623,14 @@ public Builder clearGte() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2679,14 +2650,14 @@ public com.google.protobuf.Timestamp.Builder getGteBuilder() { * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -2714,28 +2685,28 @@ public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() { * * ```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' [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-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 } }]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getGteFieldBuilder() { if (gteBuilder_ == null) { if (!(greaterThanCase_ == 6)) { greaterThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - gteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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(), @@ -2753,8 +2724,8 @@ public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() { * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -2771,8 +2742,8 @@ public boolean hasGtNow() { * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -2792,8 +2763,8 @@ public boolean getGtNow() { * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -2815,8 +2786,8 @@ public Builder setGtNow(boolean value) { * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -2834,7 +2805,7 @@ public Builder clearGtNow() { } private com.google.protobuf.Duration within_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> withinBuilder_; /** *
@@ -2842,8 +2813,8 @@ public Builder clearGtNow() {
      *
      * ```proto
      * message MyTimestamp {
-     *   // value must be within 1 hour of now
-     *   google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
+     * // value must be within 1 hour of now
+     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
      * }
      * ```
      * 
@@ -2860,8 +2831,8 @@ public boolean hasWithin() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -2882,8 +2853,8 @@ public com.google.protobuf.Duration getWithin() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -2909,8 +2880,8 @@ public Builder setWithin(com.google.protobuf.Duration value) { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -2934,8 +2905,8 @@ public Builder setWithin( * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -2966,8 +2937,8 @@ public Builder mergeWithin(com.google.protobuf.Duration value) { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -2990,8 +2961,8 @@ public Builder clearWithin() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -3009,8 +2980,8 @@ public com.google.protobuf.Duration.Builder getWithinBuilder() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -3031,19 +3002,19 @@ public com.google.protobuf.DurationOrBuilder getWithinOrBuilder() { * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // 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.priv.field) = { ... } */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWithinFieldBuilder() { if (withinBuilder_ == null) { - withinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + withinBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWithin(), getParentForChildren(), @@ -3052,18 +3023,6 @@ public com.google.protobuf.DurationOrBuilder getWithinOrBuilder() { } return withinBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.TimestampRules) } diff --git a/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java b/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java index 138fb2e5..91e6ad22 100644 --- a/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java +++ b/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface TimestampRulesOrBuilder extends @@ -14,8 +15,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -30,8 +31,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -46,8 +47,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; * } * ``` * @@ -62,8 +63,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -78,8 +79,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -94,8 +95,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; * } * ``` * @@ -110,8 +111,8 @@ public interface TimestampRulesOrBuilder extends * * ```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 }]; + * // 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 }]; * } * ``` * @@ -126,8 +127,8 @@ public interface TimestampRulesOrBuilder extends * * ```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 }]; + * // 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 }]; * } * ``` * @@ -142,8 +143,8 @@ public interface TimestampRulesOrBuilder extends * * ```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 }]; + * // 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 }]; * } * ``` * @@ -158,8 +159,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -174,8 +175,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; * } * ``` * @@ -195,14 +196,14 @@ public interface TimestampRulesOrBuilder extends * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -221,14 +222,14 @@ public interface TimestampRulesOrBuilder extends * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -247,14 +248,14 @@ public interface TimestampRulesOrBuilder extends * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -273,14 +274,14 @@ public interface TimestampRulesOrBuilder extends * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -299,14 +300,14 @@ public interface TimestampRulesOrBuilder extends * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -325,14 +326,14 @@ public interface TimestampRulesOrBuilder extends * * ```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' [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-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 } }]; + * // 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 } }]; * } * ``` * @@ -347,8 +348,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -363,8 +364,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; * } * ``` * @@ -380,8 +381,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -396,8 +397,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * @@ -412,8 +413,8 @@ public interface TimestampRulesOrBuilder extends * * ```proto * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; * } * ``` * diff --git a/src/main/java/build/buf/validate/UInt32Rules.java b/src/main/java/build/buf/validate/UInt32Rules.java index b0cacf0a..8d8d9815 100644 --- a/src/main/java/build/buf/validate/UInt32Rules.java +++ b/src/main/java/build/buf/validate/UInt32Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.UInt32Rules} */ public final class UInt32Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt32Rules.class.getName()); + } // Use UInt32Rules.newBuilder() to construct. - private UInt32Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt32Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt32Rules() { @@ -26,20 +36,13 @@ private UInt32Rules() { notIn_ = emptyIntList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UInt32Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -160,8 +163,8 @@ public boolean hasConst() { * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -183,8 +186,8 @@ public int getConst() { * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -204,8 +207,8 @@ public boolean hasLt() { * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -230,8 +233,8 @@ public int getLt() { * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -251,8 +254,8 @@ public boolean hasLte() { * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -279,14 +282,14 @@ public int getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -308,14 +311,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -342,14 +345,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -371,14 +374,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -406,8 +409,8 @@ public int getGte() { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -428,8 +431,8 @@ public int getGte() { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -448,8 +451,8 @@ public int getInCount() { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -475,8 +478,8 @@ public int getIn(int index) { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -497,8 +500,8 @@ public int getIn(int index) { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -517,8 +520,8 @@ public int getNotInCount() { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -777,20 +780,20 @@ public static build.buf.validate.UInt32Rules parseFrom( } public static build.buf.validate.UInt32Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -798,20 +801,20 @@ public static build.buf.validate.UInt32Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -831,7 +834,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -844,7 +847,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.UInt32Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.UInt32Rules) build.buf.validate.UInt32RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -853,7 +856,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -866,7 +869,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -938,38 +941,6 @@ private void buildPartialOneofs(build.buf.validate.UInt32Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.UInt32Rules) { @@ -1171,8 +1142,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -1191,8 +1162,8 @@ public boolean hasConst() { * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -1211,8 +1182,8 @@ public int getConst() { * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -1235,8 +1206,8 @@ public Builder setConst(int value) { * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -1259,8 +1230,8 @@ public Builder clearConst() { * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -1279,8 +1250,8 @@ public boolean hasLt() { * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -1302,8 +1273,8 @@ public int getLt() { * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -1327,8 +1298,8 @@ public Builder setLt(int value) { * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -1353,8 +1324,8 @@ public Builder clearLt() { * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -1373,8 +1344,8 @@ public boolean hasLte() { * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -1396,8 +1367,8 @@ public int getLte() { * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -1421,8 +1392,8 @@ public Builder setLte(int value) { * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -1449,14 +1420,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1477,14 +1448,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1508,14 +1479,14 @@ public int getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1541,14 +1512,14 @@ public Builder setGt(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1575,14 +1546,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1603,14 +1574,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1634,14 +1605,14 @@ public int getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1667,14 +1638,14 @@ public Builder setGte(int value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1706,8 +1677,8 @@ private void ensureInIsMutable() { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1728,8 +1699,8 @@ private void ensureInIsMutable() { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1748,8 +1719,8 @@ public int getInCount() { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1769,8 +1740,8 @@ public int getIn(int index) { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1797,8 +1768,8 @@ public Builder setIn( * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1823,8 +1794,8 @@ public Builder addIn(int value) { * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1850,8 +1821,8 @@ public Builder addAllIn( * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -1881,8 +1852,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1903,8 +1874,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1923,8 +1894,8 @@ public int getNotInCount() { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1944,8 +1915,8 @@ public int getNotIn(int index) { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1972,8 +1943,8 @@ public Builder setNotIn( * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1998,8 +1969,8 @@ public Builder addNotIn(int value) { * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2025,8 +1996,8 @@ public Builder addAllNotIn( * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2040,18 +2011,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.UInt32Rules) } diff --git a/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java b/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java index d8648876..32148745 100644 --- a/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface UInt32RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface UInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface UInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface UInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface UInt32RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface UInt32RulesOrBuilder extends * * ```proto * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/UInt64Rules.java b/src/main/java/build/buf/validate/UInt64Rules.java index ccfc52f8..9f4324a3 100644 --- a/src/main/java/build/buf/validate/UInt64Rules.java +++ b/src/main/java/build/buf/validate/UInt64Rules.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,12 +14,21 @@ * Protobuf type {@code buf.validate.UInt64Rules} */ public final class UInt64Rules extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + UInt64Rules.class.getName()); + } // Use UInt64Rules.newBuilder() to construct. - private UInt64Rules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UInt64Rules(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UInt64Rules() { @@ -26,20 +36,13 @@ private UInt64Rules() { notIn_ = emptyLongList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UInt64Rules(); - } - 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.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -140,8 +143,8 @@ public int getNumber() { * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -160,8 +163,8 @@ public boolean hasConst() { * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -183,8 +186,8 @@ public long getConst() { * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -204,8 +207,8 @@ public boolean hasLt() { * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -230,8 +233,8 @@ public long getLt() { * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -251,8 +254,8 @@ public boolean hasLte() { * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -279,14 +282,14 @@ public long getLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -308,14 +311,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -342,14 +345,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -371,14 +374,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -406,8 +409,8 @@ public long getGte() { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -428,8 +431,8 @@ public long getGte() { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -448,8 +451,8 @@ public int getInCount() { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -475,8 +478,8 @@ public long getIn(int index) { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -497,8 +500,8 @@ public long getIn(int index) { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -517,8 +520,8 @@ public int getNotInCount() { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -782,20 +785,20 @@ public static build.buf.validate.UInt64Rules parseFrom( } public static build.buf.validate.UInt64Rules parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -803,20 +806,20 @@ public static build.buf.validate.UInt64Rules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -836,7 +839,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -849,7 +852,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.UInt64Rules} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.UInt64Rules) build.buf.validate.UInt64RulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -858,7 +861,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -871,7 +874,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -943,38 +946,6 @@ private void buildPartialOneofs(build.buf.validate.UInt64Rules result) { result.greaterThan_ = this.greaterThan_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.UInt64Rules) { @@ -1176,8 +1147,8 @@ public Builder clearGreaterThan() { * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -1196,8 +1167,8 @@ public boolean hasConst() { * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -1216,8 +1187,8 @@ public long getConst() { * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -1240,8 +1211,8 @@ public Builder setConst(long value) { * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -1264,8 +1235,8 @@ public Builder clearConst() { * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -1284,8 +1255,8 @@ public boolean hasLt() { * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -1307,8 +1278,8 @@ public long getLt() { * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -1332,8 +1303,8 @@ public Builder setLt(long value) { * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -1358,8 +1329,8 @@ public Builder clearLt() { * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -1378,8 +1349,8 @@ public boolean hasLte() { * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -1401,8 +1372,8 @@ public long getLte() { * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -1426,8 +1397,8 @@ public Builder setLte(long value) { * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -1454,14 +1425,14 @@ public Builder clearLte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1482,14 +1453,14 @@ public boolean hasGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1513,14 +1484,14 @@ public long getGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1546,14 +1517,14 @@ public Builder setGt(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1580,14 +1551,14 @@ public Builder clearGt() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1608,14 +1579,14 @@ public boolean hasGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1639,14 +1610,14 @@ public long getGte() { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1672,14 +1643,14 @@ public Builder setGte(long value) { * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -1711,8 +1682,8 @@ private void ensureInIsMutable() { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1733,8 +1704,8 @@ private void ensureInIsMutable() { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1753,8 +1724,8 @@ public int getInCount() { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1774,8 +1745,8 @@ public long getIn(int index) { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1802,8 +1773,8 @@ public Builder setIn( * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1828,8 +1799,8 @@ public Builder addIn(long value) { * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1855,8 +1826,8 @@ public Builder addAllIn( * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -1886,8 +1857,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1908,8 +1879,8 @@ private void ensureNotInIsMutable() { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1928,8 +1899,8 @@ public int getNotInCount() { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1949,8 +1920,8 @@ public long getNotIn(int index) { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -1977,8 +1948,8 @@ public Builder setNotIn( * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2003,8 +1974,8 @@ public Builder addNotIn(long value) { * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2030,8 +2001,8 @@ public Builder addAllNotIn( * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -2045,18 +2016,6 @@ public Builder clearNotIn() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.UInt64Rules) } diff --git a/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java b/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java index 1f839ed1..352a314a 100644 --- a/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java +++ b/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface UInt64RulesOrBuilder extends @@ -15,8 +16,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -32,8 +33,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; * } * ``` * @@ -51,8 +52,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -69,8 +70,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; * } * ``` * @@ -88,8 +89,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -106,8 +107,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; * } * ``` * @@ -127,14 +128,14 @@ public interface UInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -153,14 +154,14 @@ public interface UInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -180,14 +181,14 @@ public interface UInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -206,14 +207,14 @@ public interface UInt64RulesOrBuilder extends * * ```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 [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 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 }]; + * // 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 }]; * } * ``` * @@ -231,8 +232,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -249,8 +250,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -267,8 +268,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; * } * ``` * @@ -287,8 +288,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -305,8 +306,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * @@ -323,8 +324,8 @@ public interface UInt64RulesOrBuilder extends * * ```proto * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; * } * ``` * diff --git a/src/main/java/build/buf/validate/ValidateProto.java b/src/main/java/build/buf/validate/ValidateProto.java index 87fd4bdd..7deaf1ec 100644 --- a/src/main/java/build/buf/validate/ValidateProto.java +++ b/src/main/java/build/buf/validate/ValidateProto.java @@ -1,11 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/validate.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + ValidateProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { registry.add(build.buf.validate.ValidateProto.message); @@ -69,122 +79,122 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_MessageConstraints_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_FieldConstraints_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_FloatRules_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + 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.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_TimestampRules_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -1505,160 +1515,161 @@ public static void registerAllExtensions( internal_static_buf_validate_MessageConstraints_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_MessageConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(1); internal_static_buf_validate_OneofConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(2); internal_static_buf_validate_FieldConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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", "Skipped", "IgnoreEmpty", "Type", }); internal_static_buf_validate_FloatRules_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_buf_validate_FloatRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_FloatRules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Finite", "LessThan", "GreaterThan", }); internal_static_buf_validate_DoubleRules_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_buf_validate_DoubleRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_DoubleRules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Finite", "LessThan", "GreaterThan", }); internal_static_buf_validate_Int32Rules_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_buf_validate_Int32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_Int32Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_Int64Rules_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_buf_validate_Int64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_Int64Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_UInt32Rules_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_buf_validate_UInt32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_UInt32Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_UInt64Rules_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_buf_validate_UInt64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_UInt64Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_SInt32Rules_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_buf_validate_SInt32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_SInt32Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_SInt64Rules_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_buf_validate_SInt64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_SInt64Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_Fixed32Rules_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_buf_validate_Fixed32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_Fixed32Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_Fixed64Rules_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_buf_validate_Fixed64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_Fixed64Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_SFixed32Rules_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_buf_validate_SFixed32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_SFixed32Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_SFixed64Rules_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_buf_validate_SFixed64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_SFixed64Rules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_BoolRules_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_buf_validate_BoolRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_BoolRules_descriptor, new java.lang.String[] { "Const", }); internal_static_buf_validate_StringRules_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_buf_validate_StringRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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", "WellKnown", }); internal_static_buf_validate_BytesRules_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_buf_validate_BytesRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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", "WellKnown", }); internal_static_buf_validate_EnumRules_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_buf_validate_EnumRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_EnumRules_descriptor, new java.lang.String[] { "Const", "DefinedOnly", "In", "NotIn", }); internal_static_buf_validate_RepeatedRules_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_buf_validate_RepeatedRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(20); internal_static_buf_validate_MapRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(21); internal_static_buf_validate_AnyRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + 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(22); internal_static_buf_validate_DurationRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_DurationRules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "LessThan", "GreaterThan", }); internal_static_buf_validate_TimestampRules_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_buf_validate_TimestampRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_TimestampRules_descriptor, new java.lang.String[] { "Const", "Lt", "Lte", "LtNow", "Gt", "Gte", "GtNow", "Within", "LessThan", "GreaterThan", }); message.internalInit(descriptor.getExtensions().get(0)); oneof.internalInit(descriptor.getExtensions().get(1)); field.internalInit(descriptor.getExtensions().get(2)); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.priv.PrivateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); + descriptor.resolveAllFeaturesImmutable(); build.buf.validate.ExpressionProto.getDescriptor(); build.buf.validate.priv.PrivateProto.getDescriptor(); 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.priv.PrivateProto.field); + 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 index 4b1c2bea..405a672e 100644 --- a/src/main/java/build/buf/validate/Violation.java +++ b/src/main/java/build/buf/validate/Violation.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -13,9 +14,9 @@ * * ```json * { - * "fieldPath": "bar", - * "constraintId": "foo.bar", - * "message": "bar must be greater than 0" + * "fieldPath": "bar", + * "constraintId": "foo.bar", + * "message": "bar must be greater than 0" * } * ``` * @@ -23,12 +24,21 @@ * Protobuf type {@code buf.validate.Violation} */ public final class Violation extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Violation.class.getName()); + } // Use Violation.newBuilder() to construct. - private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Violation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Violation() { @@ -37,20 +47,13 @@ private Violation() { message_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Violation(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Violation_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Violation_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -233,14 +236,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldPath_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(constraintId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, constraintId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); } if (forKey_ != false) { output.writeBool(4, forKey_); @@ -254,14 +257,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldPath_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(constraintId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, constraintId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); } if (forKey_ != false) { size += com.google.protobuf.CodedOutputStream @@ -349,20 +352,20 @@ public static build.buf.validate.Violation parseFrom( } public static build.buf.validate.Violation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -370,20 +373,20 @@ public static build.buf.validate.Violation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -403,7 +406,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -416,9 +419,9 @@ protected Builder newBuilderForType( * * ```json * { - * "fieldPath": "bar", - * "constraintId": "foo.bar", - * "message": "bar must be greater than 0" + * "fieldPath": "bar", + * "constraintId": "foo.bar", + * "message": "bar must be greater than 0" * } * ``` * @@ -426,7 +429,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Violation} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -435,7 +438,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Violation_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -448,7 +451,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -507,38 +510,6 @@ private void buildPartial0(build.buf.validate.Violation result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Violation) { @@ -966,18 +937,6 @@ public Builder clearForKey() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Violation) } diff --git a/src/main/java/build/buf/validate/ViolationOrBuilder.java b/src/main/java/build/buf/validate/ViolationOrBuilder.java index dd4baaf9..91f97c5a 100644 --- a/src/main/java/build/buf/validate/ViolationOrBuilder.java +++ b/src/main/java/build/buf/validate/ViolationOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface ViolationOrBuilder extends diff --git a/src/main/java/build/buf/validate/Violations.java b/src/main/java/build/buf/validate/Violations.java index c0d11cf3..e2e8383d 100644 --- a/src/main/java/build/buf/validate/Violations.java +++ b/src/main/java/build/buf/validate/Violations.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; /** @@ -14,32 +15,34 @@ * Protobuf type {@code buf.validate.Violations} */ public final class Violations extends - com.google.protobuf.GeneratedMessageV3 implements + 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= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Violations.class.getName()); + } // Use Violations.newBuilder() to construct. - private Violations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Violations(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Violations() { violations_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Violations(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Violations_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Violations_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -208,20 +211,20 @@ public static build.buf.validate.Violations parseFrom( } public static build.buf.validate.Violations parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -229,20 +232,20 @@ public static build.buf.validate.Violations parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + 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.GeneratedMessageV3 + 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.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -262,7 +265,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -276,7 +279,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.Violations} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + 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 @@ -285,7 +288,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.ExpressionProto.internal_static_buf_validate_Violations_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -298,7 +301,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -361,38 +364,6 @@ private void buildPartial0(build.buf.validate.Violations result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.Violations) { @@ -424,7 +395,7 @@ public Builder mergeFrom(build.buf.validate.Violations other) { violations_ = other.violations_; bitField0_ = (bitField0_ & ~0x00000001); violationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getViolationsFieldBuilder() : null; } else { violationsBuilder_.addAllMessages(other.violations_); @@ -496,7 +467,7 @@ private void ensureViolationsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Violation, build.buf.validate.Violation.Builder, build.buf.validate.ViolationOrBuilder> violationsBuilder_; /** @@ -784,11 +755,11 @@ public build.buf.validate.Violation.Builder addViolationsBuilder( getViolationsBuilderList() { return getViolationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Violation, build.buf.validate.Violation.Builder, build.buf.validate.ViolationOrBuilder> getViolationsFieldBuilder() { if (violationsBuilder_ == null) { - violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.Violation, build.buf.validate.Violation.Builder, build.buf.validate.ViolationOrBuilder>( violations_, ((bitField0_ & 0x00000001) != 0), @@ -798,18 +769,6 @@ public build.buf.validate.Violation.Builder addViolationsBuilder( } return violationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.Violations) } diff --git a/src/main/java/build/buf/validate/ViolationsOrBuilder.java b/src/main/java/build/buf/validate/ViolationsOrBuilder.java index 85cbae4a..48c56001 100644 --- a/src/main/java/build/buf/validate/ViolationsOrBuilder.java +++ b/src/main/java/build/buf/validate/ViolationsOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/expression.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate; public interface ViolationsOrBuilder extends diff --git a/src/main/java/build/buf/validate/priv/Constraint.java b/src/main/java/build/buf/validate/priv/Constraint.java index 0a790e74..4199c0f5 100644 --- a/src/main/java/build/buf/validate/priv/Constraint.java +++ b/src/main/java/build/buf/validate/priv/Constraint.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/priv/private.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.priv; /** @@ -12,12 +13,21 @@ * Protobuf type {@code buf.validate.priv.Constraint} */ public final class Constraint extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.priv.Constraint) ConstraintOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + Constraint.class.getName()); + } // Use Constraint.newBuilder() to construct. - private Constraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Constraint(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Constraint() { @@ -26,20 +36,13 @@ private Constraint() { expression_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Constraint(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.priv.PrivateProto.internal_static_buf_validate_priv_Constraint_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.priv.PrivateProto.internal_static_buf_validate_priv_Constraint_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -177,14 +180,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, expression_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, expression_); } getUnknownFields().writeTo(output); } @@ -195,14 +198,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, expression_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, expression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -281,20 +284,20 @@ public static build.buf.validate.priv.Constraint parseFrom( } public static build.buf.validate.priv.Constraint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.priv.Constraint parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.priv.Constraint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -302,20 +305,20 @@ public static build.buf.validate.priv.Constraint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.priv.Constraint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.priv.Constraint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -335,7 +338,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -347,7 +350,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.priv.Constraint} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.priv.Constraint) build.buf.validate.priv.ConstraintOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -356,7 +359,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.priv.PrivateProto.internal_static_buf_validate_priv_Constraint_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -369,7 +372,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -424,38 +427,6 @@ private void buildPartial0(build.buf.validate.priv.Constraint result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.priv.Constraint) { @@ -756,18 +727,6 @@ public Builder setExpressionBytes( onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.priv.Constraint) } diff --git a/src/main/java/build/buf/validate/priv/ConstraintOrBuilder.java b/src/main/java/build/buf/validate/priv/ConstraintOrBuilder.java index 61a7f68d..f4ef48df 100644 --- a/src/main/java/build/buf/validate/priv/ConstraintOrBuilder.java +++ b/src/main/java/build/buf/validate/priv/ConstraintOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/priv/private.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.priv; public interface ConstraintOrBuilder extends diff --git a/src/main/java/build/buf/validate/priv/FieldConstraints.java b/src/main/java/build/buf/validate/priv/FieldConstraints.java index eaa5e386..c9c980d0 100644 --- a/src/main/java/build/buf/validate/priv/FieldConstraints.java +++ b/src/main/java/build/buf/validate/priv/FieldConstraints.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/priv/private.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.priv; /** @@ -12,32 +13,34 @@ * Protobuf type {@code buf.validate.priv.FieldConstraints} */ public final class FieldConstraints extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:buf.validate.priv.FieldConstraints) FieldConstraintsOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + FieldConstraints.class.getName()); + } // Use FieldConstraints.newBuilder() to construct. - private FieldConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FieldConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FieldConstraints() { cel_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldConstraints(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.validate.priv.PrivateProto.internal_static_buf_validate_priv_FieldConstraints_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.priv.PrivateProto.internal_static_buf_validate_priv_FieldConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -186,20 +189,20 @@ public static build.buf.validate.priv.FieldConstraints parseFrom( } public static build.buf.validate.priv.FieldConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.priv.FieldConstraints parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.priv.FieldConstraints parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } @@ -207,20 +210,20 @@ public static build.buf.validate.priv.FieldConstraints parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static build.buf.validate.priv.FieldConstraints parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static build.buf.validate.priv.FieldConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @@ -240,7 +243,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -252,7 +255,7 @@ protected Builder newBuilderForType( * Protobuf type {@code buf.validate.priv.FieldConstraints} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:buf.validate.priv.FieldConstraints) build.buf.validate.priv.FieldConstraintsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor @@ -261,7 +264,7 @@ public static final class Builder extends } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return build.buf.validate.priv.PrivateProto.internal_static_buf_validate_priv_FieldConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -274,7 +277,7 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -337,38 +340,6 @@ private void buildPartial0(build.buf.validate.priv.FieldConstraints result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.buf.validate.priv.FieldConstraints) { @@ -400,7 +371,7 @@ public Builder mergeFrom(build.buf.validate.priv.FieldConstraints other) { cel_ = other.cel_; bitField0_ = (bitField0_ & ~0x00000001); celBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCelFieldBuilder() : null; } else { celBuilder_.addAllMessages(other.cel_); @@ -472,7 +443,7 @@ private void ensureCelIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.priv.Constraint, build.buf.validate.priv.Constraint.Builder, build.buf.validate.priv.ConstraintOrBuilder> celBuilder_; /** @@ -688,11 +659,11 @@ public build.buf.validate.priv.Constraint.Builder addCelBuilder( getCelBuilderList() { return getCelFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.priv.Constraint, build.buf.validate.priv.Constraint.Builder, build.buf.validate.priv.ConstraintOrBuilder> getCelFieldBuilder() { if (celBuilder_ == null) { - celBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + celBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< build.buf.validate.priv.Constraint, build.buf.validate.priv.Constraint.Builder, build.buf.validate.priv.ConstraintOrBuilder>( cel_, ((bitField0_ & 0x00000001) != 0), @@ -702,18 +673,6 @@ public build.buf.validate.priv.Constraint.Builder addCelBuilder( } return celBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:buf.validate.priv.FieldConstraints) } diff --git a/src/main/java/build/buf/validate/priv/FieldConstraintsOrBuilder.java b/src/main/java/build/buf/validate/priv/FieldConstraintsOrBuilder.java index b37e407b..07428412 100644 --- a/src/main/java/build/buf/validate/priv/FieldConstraintsOrBuilder.java +++ b/src/main/java/build/buf/validate/priv/FieldConstraintsOrBuilder.java @@ -1,7 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/priv/private.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.priv; public interface FieldConstraintsOrBuilder extends diff --git a/src/main/java/build/buf/validate/priv/PrivateProto.java b/src/main/java/build/buf/validate/priv/PrivateProto.java index 70a8fc49..f80f7e22 100644 --- a/src/main/java/build/buf/validate/priv/PrivateProto.java +++ b/src/main/java/build/buf/validate/priv/PrivateProto.java @@ -1,11 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: buf/validate/priv/private.proto +// Protobuf Java Version: 4.27.3 -// Protobuf Java Version: 3.25.3 package build.buf.validate.priv; public final class PrivateProto { private PrivateProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 3, + /* suffix= */ "", + PrivateProto.class.getName()); + } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { registry.add(build.buf.validate.priv.PrivateProto.field); @@ -34,12 +44,12 @@ public static void registerAllExtensions( static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_priv_FieldConstraints_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_priv_FieldConstraints_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_buf_validate_priv_Constraint_descriptor; static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_buf_validate_priv_Constraint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor @@ -71,16 +81,17 @@ public static void registerAllExtensions( internal_static_buf_validate_priv_FieldConstraints_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_buf_validate_priv_FieldConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_priv_FieldConstraints_descriptor, new java.lang.String[] { "Cel", }); internal_static_buf_validate_priv_Constraint_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_buf_validate_priv_Constraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_buf_validate_priv_Constraint_descriptor, new java.lang.String[] { "Id", "Message", "Expression", }); field.internalInit(descriptor.getExtensions().get(0)); + descriptor.resolveAllFeaturesImmutable(); com.google.protobuf.DescriptorProtos.getDescriptor(); } diff --git a/src/main/resources/buf/validate/validate.proto b/src/main/resources/buf/validate/validate.proto index 7b116ee2..fcc8cac4 100644 --- a/src/main/resources/buf/validate/validate.proto +++ b/src/main/resources/buf/validate/validate.proto @@ -366,8 +366,8 @@ message FloatRules { // } // ``` optional float const = 1 [(priv.field).cel = { - id: "float.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "float.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { @@ -382,7 +382,7 @@ message FloatRules { // } // ``` float lt = 2 [(priv.field).cel = { - id: "float.lt", + id: "float.lt" expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -399,7 +399,7 @@ message FloatRules { // } // ``` float lte = 3 [(priv.field).cel = { - id: "float.lte", + id: "float.lte" expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -427,31 +427,31 @@ message FloatRules { // ``` float gt = 4 [ (priv.field).cel = { - id: "float.gt", + id: "float.gt" expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "float.gt_lt", + id: "float.gt_lt" expression: "has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)" "? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, (priv.field).cel = { - id: "float.gt_lt_exclusive", + id: "float.gt_lt_exclusive" expression: "has(rules.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, rules.lt]) : ''" }, (priv.field).cel = { - id: "float.gt_lte", + id: "float.gt_lte" expression: "has(rules.lte) && rules.lte >= rules.gt && (this.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]) : ''" }, (priv.field).cel = { - id: "float.gt_lte_exclusive", + id: "float.gt_lte_exclusive" expression: "has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))" "? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" @@ -478,31 +478,31 @@ message FloatRules { // ``` float gte = 5 [ (priv.field).cel = { - id: "float.gte", + id: "float.gte" expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "float.gte_lt", + id: "float.gte_lt" expression: "has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)" "? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, (priv.field).cel = { - id: "float.gte_lt_exclusive", + id: "float.gte_lt_exclusive" expression: "has(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.gte, rules.lt]) : ''" }, (priv.field).cel = { - id: "float.gte_lte", + id: "float.gte_lte" expression: "has(rules.lte) && rules.lte >= 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]) : ''" }, (priv.field).cel = { - id: "float.gte_lte_exclusive", + id: "float.gte_lte_exclusive" expression: "has(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]) : ''" @@ -521,8 +521,8 @@ message FloatRules { // } // ``` repeated float in = 6 [(priv.field).cel = { - id: "float.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "float.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `in` requires the field value to not be equal to any of the specified @@ -536,15 +536,15 @@ message FloatRules { // } // ``` repeated float not_in = 7 [(priv.field).cel = { - id: "float.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "float.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; // `finite` requires the field value to be finite. If the field value is // infinite or NaN, an error message is generated. bool finite = 8 [(priv.field).cel = { - id: "float.finite", - expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''", + id: "float.finite" + expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''" }]; } @@ -561,8 +561,8 @@ message DoubleRules { // } // ``` optional double const = 1 [(priv.field).cel = { - id: "double.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "double.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -576,7 +576,7 @@ message DoubleRules { // } // ``` double lt = 2 [(priv.field).cel = { - id: "double.lt", + id: "double.lt" expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -593,7 +593,7 @@ message DoubleRules { // } // ``` double lte = 3 [(priv.field).cel = { - id: "double.lte", + id: "double.lte" expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -620,31 +620,31 @@ message DoubleRules { // ``` double gt = 4 [ (priv.field).cel = { - id: "double.gt", + id: "double.gt" expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "double.gt_lt", + id: "double.gt_lt" expression: "has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)" "? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, (priv.field).cel = { - id: "double.gt_lt_exclusive", + id: "double.gt_lt_exclusive" expression: "has(rules.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, rules.lt]) : ''" }, (priv.field).cel = { - id: "double.gt_lte", + id: "double.gt_lte" expression: "has(rules.lte) && rules.lte >= rules.gt && (this.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]) : ''" }, (priv.field).cel = { - id: "double.gt_lte_exclusive", + id: "double.gt_lte_exclusive" expression: "has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))" "? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" @@ -671,31 +671,31 @@ message DoubleRules { // ``` double gte = 5 [ (priv.field).cel = { - id: "double.gte", + id: "double.gte" expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "double.gte_lt", + id: "double.gte_lt" expression: "has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)" "? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, (priv.field).cel = { - id: "double.gte_lt_exclusive", + id: "double.gte_lt_exclusive" expression: "has(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.gte, rules.lt]) : ''" }, (priv.field).cel = { - id: "double.gte_lte", + id: "double.gte_lte" expression: "has(rules.lte) && rules.lte >= 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]) : ''" }, (priv.field).cel = { - id: "double.gte_lte_exclusive", + id: "double.gte_lte_exclusive" expression: "has(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]) : ''" @@ -713,8 +713,8 @@ message DoubleRules { // } // ``` repeated double in = 6 [(priv.field).cel = { - id: "double.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "double.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -728,15 +728,15 @@ message DoubleRules { // } // ``` repeated double not_in = 7 [(priv.field).cel = { - id: "double.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "double.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; // `finite` requires the field value to be finite. If the field value is // infinite or NaN, an error message is generated. bool finite = 8 [(priv.field).cel = { - id: "double.finite", - expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''", + id: "double.finite" + expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''" }]; } @@ -753,8 +753,8 @@ message Int32Rules { // } // ``` optional int32 const = 1 [(priv.field).cel = { - id: "int32.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "int32.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field @@ -768,7 +768,7 @@ message Int32Rules { // } // ``` int32 lt = 2 [(priv.field).cel = { - id: "int32.lt", + id: "int32.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -785,7 +785,7 @@ message Int32Rules { // } // ``` int32 lte = 3 [(priv.field).cel = { - id: "int32.lte", + id: "int32.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -812,31 +812,31 @@ message Int32Rules { // ``` int32 gt = 4 [ (priv.field).cel = { - id: "int32.gt", + id: "int32.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "int32.gt_lt", + id: "int32.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int32.gt_lt_exclusive", + id: "int32.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "int32.gt_lte", + id: "int32.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int32.gt_lte_exclusive", + id: "int32.gt_lte_exclusive" expression: "has(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]) : ''" @@ -863,31 +863,31 @@ message Int32Rules { // ``` int32 gte = 5 [ (priv.field).cel = { - id: "int32.gte", + id: "int32.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "int32.gte_lt", + id: "int32.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int32.gte_lt_exclusive", + id: "int32.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "int32.gte_lte", + id: "int32.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int32.gte_lte_exclusive", + id: "int32.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -906,8 +906,8 @@ message Int32Rules { // } // ``` repeated int32 in = 6 [(priv.field).cel = { - id: "int32.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "int32.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -921,8 +921,8 @@ message Int32Rules { // } // ``` repeated int32 not_in = 7 [(priv.field).cel = { - id: "int32.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "int32.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -939,8 +939,8 @@ message Int64Rules { // } // ``` optional int64 const = 1 [(priv.field).cel = { - id: "int64.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "int64.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -954,7 +954,7 @@ message Int64Rules { // } // ``` int64 lt = 2 [(priv.field).cel = { - id: "int64.lt", + id: "int64.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -971,7 +971,7 @@ message Int64Rules { // } // ``` int64 lte = 3 [(priv.field).cel = { - id: "int64.lte", + id: "int64.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -998,31 +998,31 @@ message Int64Rules { // ``` int64 gt = 4 [ (priv.field).cel = { - id: "int64.gt", + id: "int64.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "int64.gt_lt", + id: "int64.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int64.gt_lt_exclusive", + id: "int64.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "int64.gt_lte", + id: "int64.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int64.gt_lte_exclusive", + id: "int64.gt_lte_exclusive" expression: "has(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]) : ''" @@ -1049,31 +1049,31 @@ message Int64Rules { // ``` int64 gte = 5 [ (priv.field).cel = { - id: "int64.gte", + id: "int64.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "int64.gte_lt", + id: "int64.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int64.gte_lt_exclusive", + id: "int64.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "int64.gte_lte", + id: "int64.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "int64.gte_lte_exclusive", + id: "int64.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -1092,8 +1092,8 @@ message Int64Rules { // } // ``` repeated int64 in = 6 [(priv.field).cel = { - id: "int64.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "int64.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -1107,8 +1107,8 @@ message Int64Rules { // } // ``` repeated int64 not_in = 7 [(priv.field).cel = { - id: "int64.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "int64.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -1125,8 +1125,8 @@ message UInt32Rules { // } // ``` optional uint32 const = 1 [(priv.field).cel = { - id: "uint32.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "uint32.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -1140,7 +1140,7 @@ message UInt32Rules { // } // ``` uint32 lt = 2 [(priv.field).cel = { - id: "uint32.lt", + id: "uint32.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -1157,7 +1157,7 @@ message UInt32Rules { // } // ``` uint32 lte = 3 [(priv.field).cel = { - id: "uint32.lte", + id: "uint32.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -1184,31 +1184,31 @@ message UInt32Rules { // ``` uint32 gt = 4 [ (priv.field).cel = { - id: "uint32.gt", + id: "uint32.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "uint32.gt_lt", + id: "uint32.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint32.gt_lt_exclusive", + id: "uint32.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "uint32.gt_lte", + id: "uint32.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint32.gt_lte_exclusive", + id: "uint32.gt_lte_exclusive" expression: "has(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]) : ''" @@ -1235,31 +1235,31 @@ message UInt32Rules { // ``` uint32 gte = 5 [ (priv.field).cel = { - id: "uint32.gte", + id: "uint32.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "uint32.gte_lt", + id: "uint32.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint32.gte_lt_exclusive", + id: "uint32.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "uint32.gte_lte", + id: "uint32.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint32.gte_lte_exclusive", + id: "uint32.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -1278,8 +1278,8 @@ message UInt32Rules { // } // ``` repeated uint32 in = 6 [(priv.field).cel = { - id: "uint32.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "uint32.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -1293,8 +1293,8 @@ message UInt32Rules { // } // ``` repeated uint32 not_in = 7 [(priv.field).cel = { - id: "uint32.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "uint32.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -1311,8 +1311,8 @@ message UInt64Rules { // } // ``` optional uint64 const = 1 [(priv.field).cel = { - id: "uint64.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "uint64.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -1326,7 +1326,7 @@ message UInt64Rules { // } // ``` uint64 lt = 2 [(priv.field).cel = { - id: "uint64.lt", + id: "uint64.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -1343,7 +1343,7 @@ message UInt64Rules { // } // ``` uint64 lte = 3 [(priv.field).cel = { - id: "uint64.lte", + id: "uint64.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -1370,31 +1370,31 @@ message UInt64Rules { // ``` uint64 gt = 4 [ (priv.field).cel = { - id: "uint64.gt", + id: "uint64.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "uint64.gt_lt", + id: "uint64.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint64.gt_lt_exclusive", + id: "uint64.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "uint64.gt_lte", + id: "uint64.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint64.gt_lte_exclusive", + id: "uint64.gt_lte_exclusive" expression: "has(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]) : ''" @@ -1421,31 +1421,31 @@ message UInt64Rules { // ``` uint64 gte = 5 [ (priv.field).cel = { - id: "uint64.gte", + id: "uint64.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "uint64.gte_lt", + id: "uint64.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint64.gte_lt_exclusive", + id: "uint64.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "uint64.gte_lte", + id: "uint64.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "uint64.gte_lte_exclusive", + id: "uint64.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -1463,8 +1463,8 @@ message UInt64Rules { // } // ``` repeated uint64 in = 6 [(priv.field).cel = { - id: "uint64.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "uint64.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -1478,8 +1478,8 @@ message UInt64Rules { // } // ``` repeated uint64 not_in = 7 [(priv.field).cel = { - id: "uint64.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "uint64.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -1495,8 +1495,8 @@ message SInt32Rules { // } // ``` optional sint32 const = 1 [(priv.field).cel = { - id: "sint32.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "sint32.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field @@ -1510,7 +1510,7 @@ message SInt32Rules { // } // ``` sint32 lt = 2 [(priv.field).cel = { - id: "sint32.lt", + id: "sint32.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -1527,7 +1527,7 @@ message SInt32Rules { // } // ``` sint32 lte = 3 [(priv.field).cel = { - id: "sint32.lte", + id: "sint32.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -1554,31 +1554,31 @@ message SInt32Rules { // ``` sint32 gt = 4 [ (priv.field).cel = { - id: "sint32.gt", + id: "sint32.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "sint32.gt_lt", + id: "sint32.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint32.gt_lt_exclusive", + id: "sint32.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "sint32.gt_lte", + id: "sint32.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint32.gt_lte_exclusive", + id: "sint32.gt_lte_exclusive" expression: "has(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]) : ''" @@ -1605,31 +1605,31 @@ message SInt32Rules { // ``` sint32 gte = 5 [ (priv.field).cel = { - id: "sint32.gte", + id: "sint32.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "sint32.gte_lt", + id: "sint32.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint32.gte_lt_exclusive", + id: "sint32.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "sint32.gte_lte", + id: "sint32.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint32.gte_lte_exclusive", + id: "sint32.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -1648,8 +1648,8 @@ message SInt32Rules { // } // ``` repeated sint32 in = 6 [(priv.field).cel = { - id: "sint32.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "sint32.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -1663,8 +1663,8 @@ message SInt32Rules { // } // ``` repeated sint32 not_in = 7 [(priv.field).cel = { - id: "sint32.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "sint32.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -1680,8 +1680,8 @@ message SInt64Rules { // } // ``` optional sint64 const = 1 [(priv.field).cel = { - id: "sint64.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "sint64.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field @@ -1695,7 +1695,7 @@ message SInt64Rules { // } // ``` sint64 lt = 2 [(priv.field).cel = { - id: "sint64.lt", + id: "sint64.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -1712,7 +1712,7 @@ message SInt64Rules { // } // ``` sint64 lte = 3 [(priv.field).cel = { - id: "sint64.lte", + id: "sint64.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -1739,31 +1739,31 @@ message SInt64Rules { // ``` sint64 gt = 4 [ (priv.field).cel = { - id: "sint64.gt", + id: "sint64.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "sint64.gt_lt", + id: "sint64.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint64.gt_lt_exclusive", + id: "sint64.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "sint64.gt_lte", + id: "sint64.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint64.gt_lte_exclusive", + id: "sint64.gt_lte_exclusive" expression: "has(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]) : ''" @@ -1790,31 +1790,31 @@ message SInt64Rules { // ``` sint64 gte = 5 [ (priv.field).cel = { - id: "sint64.gte", + id: "sint64.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "sint64.gte_lt", + id: "sint64.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint64.gte_lt_exclusive", + id: "sint64.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "sint64.gte_lte", + id: "sint64.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sint64.gte_lte_exclusive", + id: "sint64.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -1833,8 +1833,8 @@ message SInt64Rules { // } // ``` repeated sint64 in = 6 [(priv.field).cel = { - id: "sint64.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "sint64.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -1848,8 +1848,8 @@ message SInt64Rules { // } // ``` repeated sint64 not_in = 7 [(priv.field).cel = { - id: "sint64.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "sint64.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -1865,8 +1865,8 @@ message Fixed32Rules { // } // ``` optional fixed32 const = 1 [(priv.field).cel = { - id: "fixed32.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "fixed32.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -1880,7 +1880,7 @@ message Fixed32Rules { // } // ``` fixed32 lt = 2 [(priv.field).cel = { - id: "fixed32.lt", + id: "fixed32.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -1897,7 +1897,7 @@ message Fixed32Rules { // } // ``` fixed32 lte = 3 [(priv.field).cel = { - id: "fixed32.lte", + id: "fixed32.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -1924,31 +1924,31 @@ message Fixed32Rules { // ``` fixed32 gt = 4 [ (priv.field).cel = { - id: "fixed32.gt", + id: "fixed32.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "fixed32.gt_lt", + id: "fixed32.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed32.gt_lt_exclusive", + id: "fixed32.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "fixed32.gt_lte", + id: "fixed32.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed32.gt_lte_exclusive", + id: "fixed32.gt_lte_exclusive" expression: "has(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]) : ''" @@ -1975,31 +1975,31 @@ message Fixed32Rules { // ``` fixed32 gte = 5 [ (priv.field).cel = { - id: "fixed32.gte", + id: "fixed32.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "fixed32.gte_lt", + id: "fixed32.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed32.gte_lt_exclusive", + id: "fixed32.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "fixed32.gte_lte", + id: "fixed32.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed32.gte_lte_exclusive", + id: "fixed32.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -2018,8 +2018,8 @@ message Fixed32Rules { // } // ``` repeated fixed32 in = 6 [(priv.field).cel = { - id: "fixed32.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "fixed32.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -2033,8 +2033,8 @@ message Fixed32Rules { // } // ``` repeated fixed32 not_in = 7 [(priv.field).cel = { - id: "fixed32.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "fixed32.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -2050,8 +2050,8 @@ message Fixed64Rules { // } // ``` optional fixed64 const = 1 [(priv.field).cel = { - id: "fixed64.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "fixed64.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -2065,7 +2065,7 @@ message Fixed64Rules { // } // ``` fixed64 lt = 2 [(priv.field).cel = { - id: "fixed64.lt", + id: "fixed64.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -2082,7 +2082,7 @@ message Fixed64Rules { // } // ``` fixed64 lte = 3 [(priv.field).cel = { - id: "fixed64.lte", + id: "fixed64.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -2109,31 +2109,31 @@ message Fixed64Rules { // ``` fixed64 gt = 4 [ (priv.field).cel = { - id: "fixed64.gt", + id: "fixed64.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "fixed64.gt_lt", + id: "fixed64.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed64.gt_lt_exclusive", + id: "fixed64.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "fixed64.gt_lte", + id: "fixed64.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed64.gt_lte_exclusive", + id: "fixed64.gt_lte_exclusive" expression: "has(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]) : ''" @@ -2160,31 +2160,31 @@ message Fixed64Rules { // ``` fixed64 gte = 5 [ (priv.field).cel = { - id: "fixed64.gte", + id: "fixed64.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "fixed64.gte_lt", + id: "fixed64.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed64.gte_lt_exclusive", + id: "fixed64.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "fixed64.gte_lte", + id: "fixed64.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "fixed64.gte_lte_exclusive", + id: "fixed64.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -2203,8 +2203,8 @@ message Fixed64Rules { // } // ``` repeated fixed64 in = 6 [(priv.field).cel = { - id: "fixed64.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "fixed64.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -2218,8 +2218,8 @@ message Fixed64Rules { // } // ``` repeated fixed64 not_in = 7 [(priv.field).cel = { - id: "fixed64.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "fixed64.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -2235,8 +2235,8 @@ message SFixed32Rules { // } // ``` optional sfixed32 const = 1 [(priv.field).cel = { - id: "sfixed32.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "sfixed32.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -2250,7 +2250,7 @@ message SFixed32Rules { // } // ``` sfixed32 lt = 2 [(priv.field).cel = { - id: "sfixed32.lt", + id: "sfixed32.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -2267,7 +2267,7 @@ message SFixed32Rules { // } // ``` sfixed32 lte = 3 [(priv.field).cel = { - id: "sfixed32.lte", + id: "sfixed32.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -2294,31 +2294,31 @@ message SFixed32Rules { // ``` sfixed32 gt = 4 [ (priv.field).cel = { - id: "sfixed32.gt", + id: "sfixed32.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "sfixed32.gt_lt", + id: "sfixed32.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed32.gt_lt_exclusive", + id: "sfixed32.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "sfixed32.gt_lte", + id: "sfixed32.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed32.gt_lte_exclusive", + id: "sfixed32.gt_lte_exclusive" expression: "has(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]) : ''" @@ -2345,31 +2345,31 @@ message SFixed32Rules { // ``` sfixed32 gte = 5 [ (priv.field).cel = { - id: "sfixed32.gte", + id: "sfixed32.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "sfixed32.gte_lt", + id: "sfixed32.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed32.gte_lt_exclusive", + id: "sfixed32.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "sfixed32.gte_lte", + id: "sfixed32.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed32.gte_lte_exclusive", + id: "sfixed32.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -2388,8 +2388,8 @@ message SFixed32Rules { // } // ``` repeated sfixed32 in = 6 [(priv.field).cel = { - id: "sfixed32.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "sfixed32.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -2403,8 +2403,8 @@ message SFixed32Rules { // } // ``` repeated sfixed32 not_in = 7 [(priv.field).cel = { - id: "sfixed32.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "sfixed32.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -2420,8 +2420,8 @@ message SFixed64Rules { // } // ``` optional sfixed64 const = 1 [(priv.field).cel = { - id: "sfixed64.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "sfixed64.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` requires the field value to be less than the specified value (field < @@ -2435,7 +2435,7 @@ message SFixed64Rules { // } // ``` sfixed64 lt = 2 [(priv.field).cel = { - id: "sfixed64.lt", + id: "sfixed64.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -2452,7 +2452,7 @@ message SFixed64Rules { // } // ``` sfixed64 lte = 3 [(priv.field).cel = { - id: "sfixed64.lte", + id: "sfixed64.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -2479,31 +2479,31 @@ message SFixed64Rules { // ``` sfixed64 gt = 4 [ (priv.field).cel = { - id: "sfixed64.gt", + id: "sfixed64.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "sfixed64.gt_lt", + id: "sfixed64.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed64.gt_lt_exclusive", + id: "sfixed64.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "sfixed64.gt_lte", + id: "sfixed64.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed64.gt_lte_exclusive", + id: "sfixed64.gt_lte_exclusive" expression: "has(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]) : ''" @@ -2530,31 +2530,31 @@ message SFixed64Rules { // ``` sfixed64 gte = 5 [ (priv.field).cel = { - id: "sfixed64.gte", + id: "sfixed64.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "sfixed64.gte_lt", + id: "sfixed64.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed64.gte_lt_exclusive", + id: "sfixed64.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "sfixed64.gte_lte", + id: "sfixed64.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "sfixed64.gte_lte_exclusive", + id: "sfixed64.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -2573,8 +2573,8 @@ message SFixed64Rules { // } // ``` repeated sfixed64 in = 6 [(priv.field).cel = { - id: "sfixed64.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "sfixed64.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to not be equal to any of the specified @@ -2588,8 +2588,8 @@ message SFixed64Rules { // } // ``` repeated sfixed64 not_in = 7 [(priv.field).cel = { - id: "sfixed64.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "sfixed64.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -2606,8 +2606,8 @@ message BoolRules { // } // ``` optional bool const = 1 [(priv.field).cel = { - id: "bool.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "bool.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; } @@ -2624,7 +2624,7 @@ message StringRules { // } // ``` optional string const = 1 [(priv.field).cel = { - id: "string.const", + id: "string.const" expression: "this != rules.const ? 'value must equal `%s`'.format([rules.const]) : ''" }]; @@ -2640,7 +2640,7 @@ message StringRules { // } // ``` optional uint64 len = 19 [(priv.field).cel = { - id: "string.len", + id: "string.len" expression: "uint(this.size()) != rules.len ? 'value length must be %s characters'.format([rules.len]) : ''" }]; @@ -2656,7 +2656,7 @@ message StringRules { // } // ``` optional uint64 min_len = 2 [(priv.field).cel = { - id: "string.min_len", + id: "string.min_len" expression: "uint(this.size()) < rules.min_len ? 'value length must be at least %s characters'.format([rules.min_len]) : ''" }]; @@ -2672,7 +2672,7 @@ message StringRules { // } // ``` optional uint64 max_len = 3 [(priv.field).cel = { - id: "string.max_len", + id: "string.max_len" expression: "uint(this.size()) > rules.max_len ? 'value length must be at most %s characters'.format([rules.max_len]) : ''" }]; @@ -2687,7 +2687,7 @@ message StringRules { // } // ``` optional uint64 len_bytes = 20 [(priv.field).cel = { - id: "string.len_bytes", + id: "string.len_bytes" expression: "uint(bytes(this).size()) != rules.len_bytes ? 'value length must be %s bytes'.format([rules.len_bytes]) : ''" }]; @@ -2703,7 +2703,7 @@ message StringRules { // // ``` optional uint64 min_bytes = 4 [(priv.field).cel = { - id: "string.min_bytes", + id: "string.min_bytes" expression: "uint(bytes(this).size()) < rules.min_bytes ? 'value length must be at least %s bytes'.format([rules.min_bytes]) : ''" }]; @@ -2718,8 +2718,8 @@ message StringRules { // } // ``` optional uint64 max_bytes = 5 [(priv.field).cel = { - id: "string.max_bytes", - expression: "uint(bytes(this).size()) > rules.max_bytes ? 'value length must be at most %s bytes'.format([rules.max_bytes]) : ''", + id: "string.max_bytes" + expression: "uint(bytes(this).size()) > rules.max_bytes ? 'value length must be at most %s bytes'.format([rules.max_bytes]) : ''" }]; // `pattern` specifies that the field value must match the specified @@ -2734,7 +2734,7 @@ message StringRules { // } // ``` optional string pattern = 6 [(priv.field).cel = { - id: "string.pattern", + id: "string.pattern" expression: "!this.matches(rules.pattern) ? 'value does not match regex pattern `%s`'.format([rules.pattern]) : ''" }]; @@ -2750,7 +2750,7 @@ message StringRules { // } // ``` optional string prefix = 7 [(priv.field).cel = { - id: "string.prefix", + id: "string.prefix" expression: "!this.startsWith(rules.prefix) ? 'value does not have prefix `%s`'.format([rules.prefix]) : ''" }]; @@ -2765,7 +2765,7 @@ message StringRules { // } // ``` optional string suffix = 8 [(priv.field).cel = { - id: "string.suffix", + id: "string.suffix" expression: "!this.endsWith(rules.suffix) ? 'value does not have suffix `%s`'.format([rules.suffix]) : ''" }]; @@ -2780,7 +2780,7 @@ message StringRules { // } // ``` optional string contains = 9 [(priv.field).cel = { - id: "string.contains", + id: "string.contains" expression: "!this.contains(rules.contains) ? 'value does not contain substring `%s`'.format([rules.contains]) : ''" }]; @@ -2795,7 +2795,7 @@ message StringRules { // } // ``` optional string not_contains = 23 [(priv.field).cel = { - id: "string.not_contains", + id: "string.not_contains" expression: "this.contains(rules.not_contains) ? 'value contains substring `%s`'.format([rules.not_contains]) : ''" }]; @@ -2810,7 +2810,7 @@ message StringRules { // } // ``` repeated string in = 10 [(priv.field).cel = { - id: "string.in", + id: "string.in" expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; @@ -2824,7 +2824,7 @@ message StringRules { // } // ``` repeated string not_in = 11 [(priv.field).cel = { - id: "string.not_in", + id: "string.not_in" expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; @@ -2843,14 +2843,14 @@ message StringRules { // ``` bool email = 12 [ (priv.field).cel = { - id: "string.email", - message: "value must be a valid email address", - expression: "this == '' || this.isEmail()", + id: "string.email" + message: "value must be a valid email address" + expression: "this == '' || this.isEmail()" }, (priv.field).cel = { - id: "string.email_empty", - message: "value is empty, which is not a valid email address", - expression: "this != ''", + id: "string.email_empty" + message: "value is empty, which is not a valid email address" + expression: "this != ''" } ]; @@ -2867,14 +2867,14 @@ message StringRules { // ``` bool hostname = 13 [ (priv.field).cel = { - id: "string.hostname", - message: "value must be a valid hostname", - expression: "this == '' || this.isHostname()", + id: "string.hostname" + message: "value must be a valid hostname" + expression: "this == '' || this.isHostname()" }, (priv.field).cel = { - id: "string.hostname_empty", - message: "value is empty, which is not a valid hostname", - expression: "this != ''", + id: "string.hostname_empty" + message: "value is empty, which is not a valid hostname" + expression: "this != ''" } ]; @@ -2891,14 +2891,14 @@ message StringRules { // ``` bool ip = 14 [ (priv.field).cel = { - id: "string.ip", - message: "value must be a valid IP address", - expression: "this == '' || this.isIp()", + id: "string.ip" + message: "value must be a valid IP address" + expression: "this == '' || this.isIp()" }, (priv.field).cel = { - id: "string.ip_empty", - message: "value is empty, which is not a valid IP address", - expression: "this != ''", + id: "string.ip_empty" + message: "value is empty, which is not a valid IP address" + expression: "this != ''" } ]; @@ -2914,14 +2914,14 @@ message StringRules { // ``` bool ipv4 = 15 [ (priv.field).cel = { - id: "string.ipv4", - message: "value must be a valid IPv4 address", - expression: "this == '' || this.isIp(4)", + id: "string.ipv4" + message: "value must be a valid IPv4 address" + expression: "this == '' || this.isIp(4)" }, (priv.field).cel = { - id: "string.ipv4_empty", - message: "value is empty, which is not a valid IPv4 address", - expression: "this != ''", + id: "string.ipv4_empty" + message: "value is empty, which is not a valid IPv4 address" + expression: "this != ''" } ]; @@ -2937,14 +2937,14 @@ message StringRules { // ``` bool ipv6 = 16 [ (priv.field).cel = { - id: "string.ipv6", - message: "value must be a valid IPv6 address", - expression: "this == '' || this.isIp(6)", + id: "string.ipv6" + message: "value must be a valid IPv6 address" + expression: "this == '' || this.isIp(6)" }, (priv.field).cel = { - id: "string.ipv6_empty", - message: "value is empty, which is not a valid IPv6 address", - expression: "this != ''", + id: "string.ipv6_empty" + message: "value is empty, which is not a valid IPv6 address" + expression: "this != ''" } ]; @@ -2960,14 +2960,14 @@ message StringRules { // ``` bool uri = 17 [ (priv.field).cel = { - id: "string.uri", - message: "value must be a valid URI", - expression: "this == '' || this.isUri()", + id: "string.uri" + message: "value must be a valid URI" + expression: "this == '' || this.isUri()" }, (priv.field).cel = { - id: "string.uri_empty", - message: "value is empty, which is not a valid URI", - expression: "this != ''", + id: "string.uri_empty" + message: "value is empty, which is not a valid URI" + expression: "this != ''" } ]; @@ -2982,9 +2982,9 @@ message StringRules { // } // ``` bool uri_ref = 18 [(priv.field).cel = { - id: "string.uri_ref", - message: "value must be a valid URI", - expression: "this.isUriRef()", + id: "string.uri_ref" + message: "value must be a valid URI" + expression: "this.isUriRef()" }]; // `address` specifies that the field value must be either a valid hostname @@ -3001,14 +3001,14 @@ message StringRules { // ``` bool address = 21 [ (priv.field).cel = { - id: "string.address", - message: "value must be a valid hostname, or ip address", - expression: "this == '' || this.isHostname() || this.isIp()", + id: "string.address" + message: "value must be a valid hostname, or ip address" + expression: "this == '' || this.isHostname() || this.isIp()" }, (priv.field).cel = { - id: "string.address_empty", - message: "value is empty, which is not a valid hostname, or ip address", - expression: "this != ''", + id: "string.address_empty" + message: "value is empty, which is not a valid hostname, or ip address" + expression: "this != ''" } ]; @@ -3024,14 +3024,14 @@ message StringRules { // ``` bool uuid = 22 [ (priv.field).cel = { - id: "string.uuid", - message: "value must be a valid UUID", - expression: "this == '' || this.matches('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$')", + id: "string.uuid" + message: "value must be a valid UUID" + expression: "this == '' || this.matches('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$')" }, (priv.field).cel = { - id: "string.uuid_empty", - message: "value is empty, which is not a valid UUID", - expression: "this != ''", + id: "string.uuid_empty" + message: "value is empty, which is not a valid UUID" + expression: "this != ''" } ]; @@ -3048,14 +3048,14 @@ message StringRules { // ``` bool tuuid = 33 [ (priv.field).cel = { - id: "string.tuuid", - message: "value must be a valid trimmed UUID", - expression: "this == '' || this.matches('^[0-9a-fA-F]{32}$')", + id: "string.tuuid" + message: "value must be a valid trimmed UUID" + expression: "this == '' || this.matches('^[0-9a-fA-F]{32}$')" }, (priv.field).cel = { - id: "string.tuuid_empty", - message: "value is empty, which is not a valid trimmed UUID", - expression: "this != ''", + id: "string.tuuid_empty" + message: "value is empty, which is not a valid trimmed UUID" + expression: "this != ''" } ]; @@ -3072,14 +3072,14 @@ message StringRules { // ``` bool ip_with_prefixlen = 26 [ (priv.field).cel = { - id: "string.ip_with_prefixlen", - message: "value must be a valid IP prefix", - expression: "this == '' || this.isIpPrefix()", + id: "string.ip_with_prefixlen" + message: "value must be a valid IP prefix" + expression: "this == '' || this.isIpPrefix()" }, (priv.field).cel = { - id: "string.ip_with_prefixlen_empty", - message: "value is empty, which is not a valid IP prefix", - expression: "this != ''", + id: "string.ip_with_prefixlen_empty" + message: "value is empty, which is not a valid IP prefix" + expression: "this != ''" } ]; @@ -3096,13 +3096,13 @@ message StringRules { // ``` bool ipv4_with_prefixlen = 27 [ (priv.field).cel = { - id: "string.ipv4_with_prefixlen", - message: "value must be a valid IPv4 address with prefix length", + id: "string.ipv4_with_prefixlen" + message: "value must be a valid IPv4 address with prefix length" expression: "this == '' || this.isIpPrefix(4)" }, (priv.field).cel = { - id: "string.ipv4_with_prefixlen_empty", - message: "value is empty, which is not a valid IPv4 address with prefix length", + id: "string.ipv4_with_prefixlen_empty" + message: "value is empty, which is not a valid IPv4 address with prefix length" expression: "this != ''" } ]; @@ -3120,14 +3120,14 @@ message StringRules { // ``` bool ipv6_with_prefixlen = 28 [ (priv.field).cel = { - id: "string.ipv6_with_prefixlen", - message: "value must be a valid IPv6 address with prefix length", - expression: "this == '' || this.isIpPrefix(6)", + id: "string.ipv6_with_prefixlen" + message: "value must be a valid IPv6 address with prefix length" + expression: "this == '' || this.isIpPrefix(6)" }, (priv.field).cel = { - id: "string.ipv6_with_prefixlen_empty", - message: "value is empty, which is not a valid IPv6 address with prefix length", - expression: "this != ''", + id: "string.ipv6_with_prefixlen_empty" + message: "value is empty, which is not a valid IPv6 address with prefix length" + expression: "this != ''" } ]; @@ -3144,14 +3144,14 @@ message StringRules { // ``` bool ip_prefix = 29 [ (priv.field).cel = { - id: "string.ip_prefix", - message: "value must be a valid IP prefix", - expression: "this == '' || this.isIpPrefix(true)", + id: "string.ip_prefix" + message: "value must be a valid IP prefix" + expression: "this == '' || this.isIpPrefix(true)" }, (priv.field).cel = { - id: "string.ip_prefix_empty", - message: "value is empty, which is not a valid IP prefix", - expression: "this != ''", + id: "string.ip_prefix_empty" + message: "value is empty, which is not a valid IP prefix" + expression: "this != ''" } ]; @@ -3168,13 +3168,13 @@ message StringRules { // ``` bool ipv4_prefix = 30 [ (priv.field).cel = { - id: "string.ipv4_prefix", - message: "value must be a valid IPv4 prefix", + id: "string.ipv4_prefix" + message: "value must be a valid IPv4 prefix" expression: "this == '' || this.isIpPrefix(4, true)" }, (priv.field).cel = { - id: "string.ipv4_prefix_empty", - message: "value is empty, which is not a valid IPv4 prefix", + id: "string.ipv4_prefix_empty" + message: "value is empty, which is not a valid IPv4 prefix" expression: "this != ''" } ]; @@ -3192,14 +3192,14 @@ message StringRules { // ``` bool ipv6_prefix = 31 [ (priv.field).cel = { - id: "string.ipv6_prefix", - message: "value must be a valid IPv6 prefix", - expression: "this == '' || this.isIpPrefix(6, true)", + id: "string.ipv6_prefix" + message: "value must be a valid IPv6 prefix" + expression: "this == '' || this.isIpPrefix(6, true)" }, (priv.field).cel = { - id: "string.ipv6_prefix_empty", - message: "value is empty, which is not a valid IPv6 prefix", - expression: "this != ''", + id: "string.ipv6_prefix_empty" + message: "value is empty, which is not a valid IPv6 prefix" + expression: "this != ''" } ]; @@ -3209,14 +3209,14 @@ message StringRules { // with square brackets (e.g., `[::1]:1234`). bool host_and_port = 32 [ (priv.field).cel = { - id: "string.host_and_port", - message: "value must be a valid host (hostname or IP address) and port pair", - expression: "this == '' || this.isHostAndPort(true)", + id: "string.host_and_port" + message: "value must be a valid host (hostname or IP address) and port pair" + expression: "this == '' || this.isHostAndPort(true)" }, (priv.field).cel = { - id: "string.host_and_port_empty", - message: "value is empty, which is not a valid host and port pair", - expression: "this != ''", + id: "string.host_and_port_empty" + message: "value is empty, which is not a valid host and port pair" + expression: "this != ''" } ]; @@ -3242,25 +3242,25 @@ message StringRules { // | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) | KnownRegex well_known_regex = 24 [ (priv.field).cel = { - id: "string.well_known_regex.header_name", - message: "value must be a valid HTTP header name", + id: "string.well_known_regex.header_name" + message: "value must be a valid HTTP header name" expression: "rules.well_known_regex != 1 || this == '' || this.matches(!has(rules.strict) || rules.strict ?" "'^:?[0-9a-zA-Z!#$%&\\'*+-.^_|~\\x60]+$' :" - "'^[^\\u0000\\u000A\\u000D]+$')", + "'^[^\\u0000\\u000A\\u000D]+$')" }, (priv.field).cel = { - id: "string.well_known_regex.header_name_empty", - message: "value is empty, which is not a valid HTTP header name", - expression: "rules.well_known_regex != 1 || this != ''", + id: "string.well_known_regex.header_name_empty" + message: "value is empty, which is not a valid HTTP header name" + expression: "rules.well_known_regex != 1 || this != ''" }, (priv.field).cel = { - id: "string.well_known_regex.header_value", - message: "value must be a valid HTTP header value", + id: "string.well_known_regex.header_value" + message: "value must be a valid HTTP header value" expression: "rules.well_known_regex != 2 || this.matches(!has(rules.strict) || rules.strict ?" "'^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$' :" - "'^[^\\u0000\\u000A\\u000D]*$')", + "'^[^\\u0000\\u000A\\u000D]*$')" } ]; } @@ -3304,7 +3304,7 @@ message BytesRules { // } // ``` optional bytes const = 1 [(priv.field).cel = { - id: "bytes.const", + id: "bytes.const" expression: "this != rules.const ? 'value must be %x'.format([rules.const]) : ''" }]; @@ -3318,7 +3318,7 @@ message BytesRules { // } // ``` optional uint64 len = 13 [(priv.field).cel = { - id: "bytes.len", + id: "bytes.len" expression: "uint(this.size()) != rules.len ? 'value length must be %s bytes'.format([rules.len]) : ''" }]; @@ -3333,7 +3333,7 @@ message BytesRules { // } // ``` optional uint64 min_len = 2 [(priv.field).cel = { - id: "bytes.min_len", + id: "bytes.min_len" expression: "uint(this.size()) < rules.min_len ? 'value length must be at least %s bytes'.format([rules.min_len]) : ''" }]; @@ -3348,7 +3348,7 @@ message BytesRules { // } // ``` optional uint64 max_len = 3 [(priv.field).cel = { - id: "bytes.max_len", + id: "bytes.max_len" expression: "uint(this.size()) > rules.max_len ? 'value must be at most %s bytes'.format([rules.max_len]) : ''" }]; @@ -3365,7 +3365,7 @@ message BytesRules { // } // ``` optional string pattern = 4 [(priv.field).cel = { - id: "bytes.pattern", + id: "bytes.pattern" expression: "!string(this).matches(rules.pattern) ? 'value must match regex pattern `%s`'.format([rules.pattern]) : ''" }]; @@ -3380,7 +3380,7 @@ message BytesRules { // } // ``` optional bytes prefix = 5 [(priv.field).cel = { - id: "bytes.prefix", + id: "bytes.prefix" expression: "!this.startsWith(rules.prefix) ? 'value does not have prefix %x'.format([rules.prefix]) : ''" }]; @@ -3395,7 +3395,7 @@ message BytesRules { // } // ``` optional bytes suffix = 6 [(priv.field).cel = { - id: "bytes.suffix", + id: "bytes.suffix" expression: "!this.endsWith(rules.suffix) ? 'value does not have suffix %x'.format([rules.suffix]) : ''" }]; @@ -3410,7 +3410,7 @@ message BytesRules { // } // ``` optional bytes contains = 7 [(priv.field).cel = { - id: "bytes.contains", + id: "bytes.contains" expression: "!this.contains(rules.contains) ? 'value does not contain %x'.format([rules.contains]) : ''" }]; @@ -3425,7 +3425,7 @@ message BytesRules { // } // ``` repeated bytes in = 8 [(priv.field).cel = { - id: "bytes.in", + id: "bytes.in" expression: "dyn(rules)['in'].size() > 0 && !(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; @@ -3441,7 +3441,7 @@ message BytesRules { // } // ``` repeated bytes not_in = 9 [(priv.field).cel = { - id: "bytes.not_in", + id: "bytes.not_in" expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; @@ -3459,14 +3459,14 @@ message BytesRules { // ``` bool ip = 10 [ (priv.field).cel = { - id: "bytes.ip", - message: "value must be a valid IP address", - expression: "this.size() == 0 || this.size() == 4 || this.size() == 16", + id: "bytes.ip" + message: "value must be a valid IP address" + expression: "this.size() == 0 || this.size() == 4 || this.size() == 16" }, (priv.field).cel = { - id: "bytes.ip_empty", - message: "value is empty, which is not a valid IP address", - expression: "this.size() != 0", + id: "bytes.ip_empty" + message: "value is empty, which is not a valid IP address" + expression: "this.size() != 0" } ]; @@ -3481,14 +3481,14 @@ message BytesRules { // ``` bool ipv4 = 11 [ (priv.field).cel = { - id: "bytes.ipv4", - message: "value must be a valid IPv4 address", - expression: "this.size() == 0 || this.size() == 4", + id: "bytes.ipv4" + message: "value must be a valid IPv4 address" + expression: "this.size() == 0 || this.size() == 4" }, (priv.field).cel = { - id: "bytes.ipv4_empty", - message: "value is empty, which is not a valid IPv4 address", - expression: "this.size() != 0", + id: "bytes.ipv4_empty" + message: "value is empty, which is not a valid IPv4 address" + expression: "this.size() != 0" } ]; @@ -3502,14 +3502,14 @@ message BytesRules { // ``` bool ipv6 = 12 [ (priv.field).cel = { - id: "bytes.ipv6", - message: "value must be a valid IPv6 address", + id: "bytes.ipv6" + message: "value must be a valid IPv6 address" expression: "this.size() == 0 || this.size() == 16" }, (priv.field).cel = { - id: "bytes.ipv6_empty", - message: "value is empty, which is not a valid IPv6 address", - expression: "this.size() != 0", + id: "bytes.ipv6_empty" + message: "value is empty, which is not a valid IPv6 address" + expression: "this.size() != 0" } ]; } @@ -3533,8 +3533,8 @@ message EnumRules { // } // ``` optional int32 const = 1 [(priv.field).cel = { - id: "enum.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "enum.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; // `defined_only` requires the field value to be one of the defined values for @@ -3571,8 +3571,8 @@ message EnumRules { // } // ``` repeated int32 in = 3 [(priv.field).cel = { - id: "enum.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "enum.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` requires the field value to be not equal to any of the @@ -3592,8 +3592,8 @@ message EnumRules { // } // ``` repeated int32 not_in = 4 [(priv.field).cel = { - id: "enum.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "enum.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -3766,8 +3766,8 @@ message DurationRules { // } // ``` optional google.protobuf.Duration const = 2 [(priv.field).cel = { - id: "duration.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "duration.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, @@ -3781,7 +3781,7 @@ message DurationRules { // } // ``` google.protobuf.Duration lt = 3 [(priv.field).cel = { - id: "duration.lt", + id: "duration.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -3798,7 +3798,7 @@ message DurationRules { // } // ``` google.protobuf.Duration lte = 4 [(priv.field).cel = { - id: "duration.lte", + id: "duration.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -3825,31 +3825,31 @@ message DurationRules { // ``` google.protobuf.Duration gt = 5 [ (priv.field).cel = { - id: "duration.gt", + id: "duration.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "duration.gt_lt", + id: "duration.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "duration.gt_lt_exclusive", + id: "duration.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "duration.gt_lte", + id: "duration.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "duration.gt_lte_exclusive", + id: "duration.gt_lte_exclusive" expression: "has(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]) : ''" @@ -3876,31 +3876,31 @@ message DurationRules { // ``` google.protobuf.Duration gte = 6 [ (priv.field).cel = { - id: "duration.gte", + id: "duration.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "duration.gte_lt", + id: "duration.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "duration.gte_lt_exclusive", + id: "duration.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "duration.gte_lte", + id: "duration.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "duration.gte_lte_exclusive", + id: "duration.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -3919,8 +3919,8 @@ message DurationRules { // } // ``` repeated google.protobuf.Duration in = 7 [(priv.field).cel = { - id: "duration.in", - expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''", + id: "duration.in" + expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }]; // `not_in` denotes that the field must not be equal to @@ -3935,8 +3935,8 @@ message DurationRules { // } // ``` repeated google.protobuf.Duration not_in = 8 [(priv.field).cel = { - id: "duration.not_in", - expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''", + id: "duration.not_in" + expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }]; } @@ -3951,8 +3951,8 @@ message TimestampRules { // } // ``` optional google.protobuf.Timestamp const = 2 [(priv.field).cel = { - id: "timestamp.const", - expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''", + id: "timestamp.const" + expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }]; oneof less_than { // 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. @@ -3964,7 +3964,7 @@ message TimestampRules { // } // ``` google.protobuf.Timestamp lt = 3 [(priv.field).cel = { - id: "timestamp.lt", + id: "timestamp.lt" expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt" "? 'value must be less than %s'.format([rules.lt]) : ''" @@ -3979,7 +3979,7 @@ message TimestampRules { // } // ``` google.protobuf.Timestamp lte = 4 [(priv.field).cel = { - id: "timestamp.lte", + id: "timestamp.lte" expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte" "? 'value must be less than or equal to %s'.format([rules.lte]) : ''" @@ -3994,7 +3994,7 @@ message TimestampRules { // } // ``` bool lt_now = 7 [(priv.field).cel = { - id: "timestamp.lt_now", + id: "timestamp.lt_now" expression: "this > now ? 'value must be less than now' : ''" }]; } @@ -4019,31 +4019,31 @@ message TimestampRules { // ``` google.protobuf.Timestamp gt = 5 [ (priv.field).cel = { - id: "timestamp.gt", + id: "timestamp.gt" expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt" "? 'value must be greater than %s'.format([rules.gt]) : ''" }, (priv.field).cel = { - id: "timestamp.gt_lt", + id: "timestamp.gt_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "timestamp.gt_lt_exclusive", + id: "timestamp.gt_lt_exclusive" expression: "has(rules.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]) : ''" }, (priv.field).cel = { - id: "timestamp.gt_lte", + id: "timestamp.gt_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "timestamp.gt_lte_exclusive", + id: "timestamp.gt_lte_exclusive" expression: "has(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]) : ''" @@ -4070,31 +4070,31 @@ message TimestampRules { // ``` google.protobuf.Timestamp gte = 6 [ (priv.field).cel = { - id: "timestamp.gte", + id: "timestamp.gte" expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte" "? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, (priv.field).cel = { - id: "timestamp.gte_lt", + id: "timestamp.gte_lt" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "timestamp.gte_lt_exclusive", + id: "timestamp.gte_lt_exclusive" expression: "has(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, rules.lt]) : ''" }, (priv.field).cel = { - id: "timestamp.gte_lte", + id: "timestamp.gte_lte" expression: "has(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]) : ''" }, (priv.field).cel = { - id: "timestamp.gte_lte_exclusive", + id: "timestamp.gte_lte_exclusive" expression: "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'.format([rules.gte, rules.lte]) : ''" @@ -4110,7 +4110,7 @@ message TimestampRules { // } // ``` bool gt_now = 8 [(priv.field).cel = { - id: "timestamp.gt_now", + id: "timestamp.gt_now" expression: "this < now ? 'value must be greater than now' : ''" }]; } @@ -4124,7 +4124,7 @@ message TimestampRules { // } // ``` optional google.protobuf.Duration within = 9 [(priv.field).cel = { - id: "timestamp.within", + id: "timestamp.within" expression: "this < now-rules.within || this > now+rules.within ? 'value must be within %s of now'.format([rules.within]) : ''" }]; } diff --git a/src/test/resources/proto/buf.gen.imports.yaml b/src/test/resources/proto/buf.gen.imports.yaml index 30a5a3c9..398e6091 100644 --- a/src/test/resources/proto/buf.gen.imports.yaml +++ b/src/test/resources/proto/buf.gen.imports.yaml @@ -5,7 +5,7 @@ managed: - file_option: java_package_prefix value: com.example.imports plugins: - - remote: buf.build/protocolbuffers/java:v25.3 + - remote: buf.build/protocolbuffers/java:v27.3 out: build/generated/test-sources/bufgen inputs: - directory: src/test/resources/proto diff --git a/src/test/resources/proto/buf.gen.noimports.yaml b/src/test/resources/proto/buf.gen.noimports.yaml index 0ae058e8..98cb5e44 100644 --- a/src/test/resources/proto/buf.gen.noimports.yaml +++ b/src/test/resources/proto/buf.gen.noimports.yaml @@ -8,7 +8,7 @@ managed: - file_option: java_package_prefix value: com.example.noimports plugins: - - remote: buf.build/protocolbuffers/java:v25.3 + - remote: buf.build/protocolbuffers/java:v27.3 out: build/generated/test-sources/bufgen inputs: - directory: src/main/resources