Class UnknownFieldSchema<T,B>
java.lang.Object
com.google.protobuf.UnknownFieldSchema<T,B>
- Direct Known Subclasses:
UnknownFieldSetLiteSchema, UnknownFieldSetSchema
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidaddFixed32(B fields, int number, int value) Adds a fixed32 value to the unknown fields.(package private) abstract voidaddFixed64(B fields, int number, long value) Adds a fixed64 value to the unknown fields.(package private) abstract voidAdds a group value to the unknown fields.(package private) abstract voidaddLengthDelimited(B fields, int number, ByteString value) Adds a length delimited value to the unknown fields.(package private) abstract voidAdds a varint value to the unknown fields.(package private) abstract BgetBuilderFromMessage(Object message) Returns a builder for unknown fields in the message.(package private) abstract TgetFromMessage(Object message) Get the unknown fields from the message.(package private) abstract intgetSerializedSize(T unknowns) (package private) abstract intgetSerializedSizeAsMessageSet(T message) Get the serialized size for message set serialization.(package private) abstract voidmakeImmutable(Object message) Marks unknown fields as immutable.(package private) abstract TMergessourceintodestinationand returns the merged instance.private final void(package private) final booleanmergeOneFieldFrom(B unknownFields, Reader reader, int currentDepth) Merges one field into the unknown fields.(package private) abstract BCreate a new builder for unknown fields.(package private) abstract voidsetBuilderToMessage(Object message, B builder) Sets an unknown field builder into the message.voidsetRecursionLimit(int limit) Set the maximum recursion limit that ArrayDecoders will allow.(package private) abstract voidsetToMessage(Object message, T fields) Sets the unknown fields into the message.(package private) abstract booleanshouldDiscardUnknownFields(Reader reader) Whether unknown fields should be dropped.(package private) abstract TtoImmutable(B fields) Returns an immutable instance of the field container.(package private) abstract voidwriteAsMessageSetTo(T unknownFields, Writer writer) (package private) abstract void
-
Field Details
-
DEFAULT_RECURSION_LIMIT
static final int DEFAULT_RECURSION_LIMIT- See Also:
-
recursionLimit
private static volatile int recursionLimit
-
-
Constructor Details
-
UnknownFieldSchema
UnknownFieldSchema()
-
-
Method Details
-
shouldDiscardUnknownFields
Whether unknown fields should be dropped. -
addVarint
Adds a varint value to the unknown fields. -
addFixed32
Adds a fixed32 value to the unknown fields. -
addFixed64
Adds a fixed64 value to the unknown fields. -
addLengthDelimited
Adds a length delimited value to the unknown fields. -
addGroup
-
newBuilder
Create a new builder for unknown fields. -
toImmutable
-
setToMessage
-
getFromMessage
-
getBuilderFromMessage
-
setBuilderToMessage
-
makeImmutable
Marks unknown fields as immutable. -
mergeOneFieldFrom
final boolean mergeOneFieldFrom(B unknownFields, Reader reader, int currentDepth) throws IOException Merges one field into the unknown fields.- Throws:
IOException
-
mergeFrom
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
writeAsMessageSetTo
- Throws:
IOException
-
merge
-
getSerializedSizeAsMessageSet
Get the serialized size for message set serialization. -
getSerializedSize
-
setRecursionLimit
public void setRecursionLimit(int limit) Set the maximum recursion limit that ArrayDecoders will allow. An exception will be thrown if the depth of the message exceeds this limit.
-