(package private) static int |
FieldSet.computeElementSize(WireFormat.FieldType type,
int number,
java.lang.Object value) |
Compute the number of bytes that would be needed to encode a single tag/value pair of arbitrary
type.
|
(package private) static int |
FieldSet.computeElementSizeNoTag(WireFormat.FieldType type,
java.lang.Object value) |
Compute the number of bytes that would be needed to encode a particular value of arbitrary
type, excluding tag.
|
private int |
MessageSchema.decodeMapEntryValue(byte[] data,
int position,
int limit,
WireFormat.FieldType fieldType,
java.lang.Class<?> messageType,
ArrayDecoders.Registers registers) |
Decodes a map entry key or value.
|
(package private) static int |
FieldSet.getWireFormatForFieldType(WireFormat.FieldType type,
boolean isPacked) |
Given a field type, return the wire type.
|
private static boolean |
FieldSet.isValidType(WireFormat.FieldType type,
java.lang.Object value) |
|
static <K,V> MapEntry<K,V> |
MapEntry.newDefaultInstance(Descriptors.Descriptor descriptor,
WireFormat.FieldType keyType,
K defaultKey,
WireFormat.FieldType valueType,
V defaultValue) |
Create a default MapEntry instance.
|
static <K,V> MapEntryLite<K,V> |
MapEntryLite.newDefaultInstance(WireFormat.FieldType keyType,
K defaultKey,
WireFormat.FieldType valueType,
V defaultValue) |
Creates a default MapEntryLite message instance.
|
static <ContainingType extends MessageLite,Type> GeneratedMessageLite.GeneratedExtension<ContainingType,Type> |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked,
java.lang.Class singularType) |
For use by generated code only.
|
static <ContainingType extends MessageLite,Type> GeneratedMessageLite.GeneratedExtension<ContainingType,Type> |
GeneratedMessageLite.newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance,
Type defaultValue,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
java.lang.Class singularType) |
For use by generated code only.
|
(package private) static <T> T |
MapEntryLite.parseField(CodedInputStream input,
ExtensionRegistryLite extensionRegistry,
WireFormat.FieldType type,
T value) |
|
private java.lang.Object |
BinaryReader.SafeHeapReader.readField(WireFormat.FieldType fieldType,
java.lang.Class<?> messageType,
ExtensionRegistryLite extensionRegistry) |
|
private java.lang.Object |
CodedInputStreamReader.readField(WireFormat.FieldType fieldType,
java.lang.Class<?> messageType,
ExtensionRegistryLite extensionRegistry) |
|
static java.lang.Object |
FieldSet.readPrimitiveField(CodedInputStream input,
WireFormat.FieldType type,
boolean checkUtf8) |
Read a field of any primitive type for immutable messages from a CodedInputStream.
|
(package private) static java.lang.Object |
WireFormat.readPrimitiveField(CodedInputStream input,
WireFormat.FieldType type,
WireFormat.Utf8Validation utf8Validation) |
Read a field of any primitive type for immutable messages from a CodedInputStream.
|
(package private) static void |
FieldSet.writeElement(CodedOutputStream output,
WireFormat.FieldType type,
int number,
java.lang.Object value) |
Write a single tag-value pair to the stream.
|
(package private) static void |
FieldSet.writeElementNoTag(CodedOutputStream output,
WireFormat.FieldType type,
java.lang.Object value) |
Write a field of arbitrary type, without its tag, to the stream.
|
(package private) static void |
BinaryWriter.writeMapEntryField(Writer writer,
int fieldNumber,
WireFormat.FieldType fieldType,
java.lang.Object object) |
|