All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.GeneratedMessageV3 Maven / Gradle / Ivy

Go to download

Core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

There is a newer version: 4.29.0-RC2
Show newest version
// Protocol Buffers - Google's data interchange format
// Copyright 2024 Google LLC.  All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

package com.google.protobuf;

import com.google.protobuf.Descriptors.Descriptor;
import com.google.protobuf.Descriptors.FieldDescriptor;
import com.google.protobuf.Descriptors.OneofDescriptor;
import com.google.protobuf.Internal.BooleanList;
import com.google.protobuf.Internal.DoubleList;
import com.google.protobuf.Internal.FloatList;
import com.google.protobuf.Internal.IntList;
import com.google.protobuf.Internal.LongList;
import java.util.List;

/**
 * Stub for GeneratedMessageV3 wrapping GeneratedMessage for compatibility with older gencode.
 *
 * 

Extends GeneratedMessage.ExtendableMessage instead of GeneratedMessage to allow "multiple * inheritance" for GeneratedMessageV3.ExtendableMessage subclass. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage instead. */ @Deprecated public abstract class GeneratedMessageV3 extends GeneratedMessage.ExtendableMessage { private static final long serialVersionUID = 1L; @Deprecated protected GeneratedMessageV3() { super(); } @Deprecated protected GeneratedMessageV3(Builder builder) { super(builder); } /* @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead. */ @Deprecated protected static IntList mutableCopy(IntList list) { return makeMutableCopy(list); } /* @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead. */ @Deprecated protected static LongList mutableCopy(LongList list) { return makeMutableCopy(list); } /* @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead. */ @Deprecated protected static FloatList mutableCopy(FloatList list) { return makeMutableCopy(list); } /* @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead. */ @Deprecated protected static DoubleList mutableCopy(DoubleList list) { return makeMutableCopy(list); } /* @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead. */ @Deprecated protected static BooleanList mutableCopy(BooleanList list) { return makeMutableCopy(list); } /* Overrides abstract GeneratedMessage.internalGetFieldAccessorTable(). * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.internalGetFieldAccessorTable() instead. */ @Deprecated @Override protected FieldAccessorTable internalGetFieldAccessorTable() { throw new UnsupportedOperationException("Should be overridden in gencode."); } /** * Stub for GeneratedMessageV3.UnusedPrivateParameter for compatibility with older gencode. * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.UnusedPrivateParameter instead. */ @Deprecated protected static final class UnusedPrivateParameter { static final UnusedPrivateParameter INSTANCE = new UnusedPrivateParameter(); private UnusedPrivateParameter() {} } /* Stub for method overridden from old generated code * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.newInstance() instead. */ @Deprecated @SuppressWarnings({"unused"}) protected Object newInstance(UnusedPrivateParameter unused) { throw new UnsupportedOperationException("This method must be overridden by the subclass."); } @Deprecated protected interface BuilderParent extends AbstractMessage.BuilderParent {} @Deprecated protected abstract Message.Builder newBuilderForType(BuilderParent parent); /* Removed from GeneratedMessage in * https://github.com/protocolbuffers/protobuf/commit/787447430fc9a69c071393e85a380b664d261ab4 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which no longer uses this method. */ @Deprecated @Override protected Message.Builder newBuilderForType(final AbstractMessage.BuilderParent parent) { return newBuilderForType( new BuilderParent() { @Override public void markDirty() { parent.markDirty(); } }); } /** * Stub for GeneratedMessageV3.Builder wrapping GeneratedMessage.Builder for compatibility with * older gencode. * *

Extends GeneratedMessage.ExtendableBuilder instead of GeneratedMessage.Builder to allow * "multiple inheritance" for GeneratedMessageV3.ExtendableBuilder subclass. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.Builder * instead. */ @Deprecated public abstract static class Builder> extends GeneratedMessage.ExtendableBuilder { private BuilderParentImpl meAsParent; @Deprecated protected Builder() { super(null); } @Deprecated protected Builder(BuilderParent builderParent) { super(builderParent); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.clone() instead. */ @Deprecated @Override public BuilderT clone() { return super.clone(); } /* Stub for method overridden from old generated code * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.setField() instead. */ @Deprecated @Override public BuilderT clear() { return super.clear(); } /* Overrides abstract GeneratedMessage.Builder.internalGetFieldAccessorTable(). * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.internalGetFieldAccessorTable() instead. */ @Deprecated @Override protected FieldAccessorTable internalGetFieldAccessorTable() { throw new UnsupportedOperationException("Should be overridden in gencode."); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.setField() instead. */ @Deprecated @Override public BuilderT setField(final FieldDescriptor field, final Object value) { return super.setField(field, value); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.clearField() instead. */ @Deprecated @Override public BuilderT clearField(final FieldDescriptor field) { return super.clearField(field); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.clearOneof() instead. */ @Deprecated @Override public BuilderT clearOneof(final OneofDescriptor oneof) { return super.clearOneof(oneof); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.setRepeatedField() instead. */ @Deprecated @Override public BuilderT setRepeatedField( final FieldDescriptor field, final int index, final Object value) { return super.setRepeatedField(field, index, value); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.addRepeatedField() instead. */ @Deprecated @Override public BuilderT addRepeatedField(final FieldDescriptor field, final Object value) { return super.addRepeatedField(field, value); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.setUnknownFields() instead. */ @Deprecated @Override public BuilderT setUnknownFields(final UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.Builder.mergeUnknownFields() instead. */ @Deprecated @Override public BuilderT mergeUnknownFields(final UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } @Deprecated private class BuilderParentImpl implements BuilderParent { @Override public void markDirty() { onChanged(); } } /* Returns GeneratedMessageV3.Builder.BuilderParent instead of * GeneratedMessage.Builder.BuilderParent. * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.Builder.getParentForChildren() instead. */ @Deprecated @Override protected BuilderParent getParentForChildren() { if (meAsParent == null) { meAsParent = new BuilderParentImpl(); } return meAsParent; } } /** * Stub for GeneratedMessageV3.ExtendableMessageOrBuilder wrapping * GeneratedMessage.ExtendableMessageOrBuilder for compatibility with older gencode. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableMessageOrBuilder. */ @Deprecated public interface ExtendableMessageOrBuilder> extends GeneratedMessage.ExtendableMessageOrBuilder { /* Removed from GeneratedMessage.ExtendableMessageOrBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated boolean hasExtension(GeneratedExtension extension); /* Removed from GeneratedMessage.ExtendableMessageOrBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated int getExtensionCount(GeneratedExtension> extension); /* Removed from GeneratedMessage.ExtendableMessageOrBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated T getExtension(GeneratedExtension extension); /* Removed from GeneratedMessage.ExtendableMessageOrBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated T getExtension(GeneratedExtension> extension, int index); } /** * Stub for GeneratedMessageV3.ExtendableMessage wrapping GeneratedMessage.ExtendableMessage for * compatibility with older gencode. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableMessage. */ @Deprecated public abstract static class ExtendableMessage> extends GeneratedMessageV3 // Extends GeneratedMessage.ExtendableMessage via // GeneratedMessageV3 implements ExtendableMessageOrBuilder { @Deprecated protected ExtendableMessage() { super(); } @Deprecated protected ExtendableMessage(ExtendableBuilder builder) { super(builder); } /* Removed from GeneratedMessage.ExtendableMessage in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final boolean hasExtension(final GeneratedExtension extension) { return hasExtension((ExtensionLite) extension); } /* Removed from GeneratedMessage.ExtendableMessage in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final int getExtensionCount(final GeneratedExtension> extension) { return getExtensionCount((ExtensionLite>) extension); } /* Removed from GeneratedMessage.ExtendableMessage in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final T getExtension(final GeneratedExtension extension) { return getExtension((ExtensionLite) extension); } /* Removed from GeneratedMessage.ExtendableMessage in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final T getExtension( final GeneratedExtension> extension, final int index) { return getExtension((ExtensionLite>) extension, index); } /* Overrides abstract GeneratedMessage.ExtendableMessage.internalGetFieldAccessorTable(). * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.ExtendableMessage.internalGetFieldAccessorTable() instead. */ @Deprecated @Override protected FieldAccessorTable internalGetFieldAccessorTable() { throw new UnsupportedOperationException("Should be overridden in gencode."); } /** * Stub for GeneratedMessageV3.ExtendableMessage.ExtensionWriter wrapping * GeneratedMessage.ExtendableMessage.ExtensionWriter for compatibility with older gencode. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableMessage.ExtensionWriter instead. */ @Deprecated protected class ExtensionWriter extends GeneratedMessage.ExtendableMessage.ExtensionWriter { private ExtensionWriter(final boolean messageSetWireFormat) { super(messageSetWireFormat); } } /* Returns GeneratedMessageV3.ExtendableMessage.ExtensionWriter instead of * GeneratedMessage.ExtendableMessage.ExtensionWriter. * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableMessage.newExtensionWriter() instead. */ @Deprecated @Override protected ExtensionWriter newExtensionWriter() { return new ExtensionWriter(false); } /* Returns GeneratedMessageV3.ExtendableMessage.ExtensionWriter instead of * GeneratedMessage.ExtendableMessage.ExtensionWriter. * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableMessage.newMessageSetExtensionWriter() instead. */ @Deprecated @Override protected ExtensionWriter newMessageSetExtensionWriter() { return new ExtensionWriter(true); } } /** * Stub for GeneratedMessageV3.ExtendableBuilder wrapping GeneratedMessage.ExtendableBuilder for * compatibility with older gencode. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableBuilder instead. */ @Deprecated public abstract static class ExtendableBuilder< MessageT extends ExtendableMessage, BuilderT extends ExtendableBuilder> extends Builder // Extends GeneratedMessage.ExtendableBuilder via Builder implements ExtendableMessageOrBuilder { @Deprecated protected ExtendableBuilder() { super(); } @Deprecated protected ExtendableBuilder(BuilderParent parent) { super(parent); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final boolean hasExtension(final GeneratedExtension extension) { return hasExtension((ExtensionLite) extension); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final int getExtensionCount(final GeneratedExtension> extension) { return getExtensionCount((ExtensionLite>) extension); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final T getExtension(final GeneratedExtension extension) { return getExtension((ExtensionLite) extension); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated @Override public final T getExtension( final GeneratedExtension> extension, final int index) { return getExtension((ExtensionLite>) extension, index); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated public BuilderT setExtension( final GeneratedMessage.GeneratedExtension extension, final T value) { return setExtension((ExtensionLite) extension, value); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated public BuilderT setExtension( final GeneratedMessage.GeneratedExtension> extension, final int index, final T value) { return setExtension((ExtensionLite>) extension, index, value); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated public BuilderT addExtension( final GeneratedMessage.GeneratedExtension> extension, final T value) { return addExtension((ExtensionLite>) extension, value); } /* Removed from GeneratedMessage.ExtendableBuilder in * https://github.com/protocolbuffers/protobuf/commit/94a2a448518403341b8aa71335ab1123fbdcccd8 * * @deprecated This method is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which no longer overrides this method. */ @Deprecated public BuilderT clearExtension( final GeneratedMessage.GeneratedExtension extension) { return clearExtension((ExtensionLite) extension); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.ExtendableBuilder.setField() instead. */ @Deprecated @Override public BuilderT setField(final FieldDescriptor field, final Object value) { return super.setField(field, value); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.ExtendableBuilder.clearField() instead. */ @Deprecated @Override public BuilderT clearField(final FieldDescriptor field) { return super.clearField(field); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.ExtendableBuilder.clearOneof() instead. */ @Deprecated @Override public BuilderT clearOneof(final OneofDescriptor oneof) { return super.clearOneof(oneof); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.ExtendableBuilder.setRepeatedField() instead. */ @Deprecated @Override public BuilderT setRepeatedField( final FieldDescriptor field, final int index, final Object value) { return super.setRepeatedField(field, index, value); } /* Stub for method overridden from old generated code removed in * https://github.com/protocolbuffers/protobuf/commit/7bff169d32710b143951ec6ce2c4ea9a56e2ad24 * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which overrides * GeneratedMessage.ExtendableBuilder.addRepeatedField() instead. */ @Deprecated @Override public BuilderT addRepeatedField(final FieldDescriptor field, final Object value) { return super.addRepeatedField(field, value); } /* Stub for method called from old generated code. * @Override not allowed despite inheriting from * GeneratedMessage.ExtendableBuilder.mergeExtensionFields(). * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ExtendableBuilder.mergeExtensionFields() instead. */ @Deprecated protected final void mergeExtensionFields(final ExtendableMessage other) { super.mergeExtensionFields(other); } } /** * Stub for GeneratedMessageV3.FieldAccessorTable wrapping GeneratedMessage.FieldAccessorTable for * compatibility with older gencode. * * @deprecated This class is deprecated, and slated for removal in the next Java breaking change * (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.FieldAccessorTable instead. */ @Deprecated public static final class FieldAccessorTable extends GeneratedMessage.FieldAccessorTable { @Deprecated public FieldAccessorTable( final Descriptor descriptor, final String[] camelCaseNames, final Class messageClass, final Class> builderClass) { super(descriptor, camelCaseNames, messageClass, builderClass); } @Deprecated public FieldAccessorTable(final Descriptor descriptor, final String[] camelCaseNames) { super(descriptor, camelCaseNames); } /* Returns GeneratedMessageV3.FieldAccessorTable instead of GeneratedMessage.FieldAccessorTable. * * @deprecated This method is deprecated, and slated for removal in the next Java breaking * change (5.x). Users should update gencode to >= 4.26.x which uses * GeneratedMessage.ensureFieldAccessorsInitialized() instead. */ @Deprecated @Override public FieldAccessorTable ensureFieldAccessorsInitialized( Class messageClass, Class> builderClass) { return (FieldAccessorTable) super.ensureFieldAccessorsInitialized(messageClass, builderClass); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy