Top Deprecated
Protocol Buffers [Core] 3.7.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
com.google.protobuf.AbstractMessage.hashBoolean(boolean b)

from v3.0.0-beta-3+, for compatibility with v2.5.0 and v2.6.1 generated code.

com.google.protobuf.AbstractMessage.hashEnum(Internal.EnumLite e)

from v3.0.0-beta-3+, for compatibility with v2.5.0 and v2.6.1 generated code.

com.google.protobuf.AbstractMessage.hashEnumList(List<? extends Internal.EnumLite> list)

from v3.0.0-beta-3+, for compatibility with v2.5.0 and v2.6.1 generated code.

com.google.protobuf.AbstractMessage.hashLong(long n)

from v3.0.0-beta-3+, for compatibility with v2.5.0 and v2.6.1 generated code.

com.google.protobuf.AbstractMessageLite.addAll(final Iterable<T> values, final Collection<? super T> list)

com.google.protobuf.ByteString.copyTo(byte[]
buffer to copy into
target
,
int
offset within these bytes
sourceOffset
,
int
offset within the target buffer
targetOffset
,
int
number of bytes to copy
numberToCopy
)

Instead, call byteString.substring(sourceOffset, sourceOffset + numberToCopy).copyTo(target, targetOffset)

com.google.protobuf.CodedInputStream.readUnknownGroup(final int fieldNumber, final MessageLite.Builder builder)

UnknownFieldSet.Builder now implements MessageLite.Builder, so you can just call readGroup.

Returns:

false if the tag is an endgroup tag, in which case nothing is skipped. Otherwise, returns true.
com.google.protobuf.CodedInputStream.skipField
(final int tag, final CodedOutputStream output)

use UnknownFieldSet or UnknownFieldSetLite to skip to an output stream.

com.google.protobuf.CodedOutputStream.computeGroupSize(final int fieldNumber, final MessageLite value)

groups are deprecated.

com.google.protobuf.CodedOutputStream.newInstance(ByteBuffer byteBuffer, int unused)

the size parameter is no longer used since use of an internal buffer is useless (and wasteful) when writing to a ByteBuffer. Use newInstance(ByteBuffer) instead.

com.google.protobuf.CodedOutputStream.writeGroup(final int fieldNumber, final MessageLite value)

groups are deprecated.

com.google.protobuf.GeneratedMessageLite.SerializedForm.readResolveFallback()

from v3.0.0-beta-3+, for compatibility with v2.5.0 and v2.6.1 generated code.