Package | Description |
---|---|
com.google.protobuf |
Modifier and Type | Field and Description |
---|---|
WireFormat.FieldType |
MapEntryLite.Metadata.keyType |
private static WireFormat.FieldType[] |
Descriptors.FieldDescriptor.table |
(package private) WireFormat.FieldType |
GeneratedMessageLite.ExtensionDescriptor.type |
WireFormat.FieldType |
MapEntryLite.Metadata.valueType |
Modifier and Type | Method and Description |
---|---|
WireFormat.FieldType |
GeneratedMessage.GeneratedExtension.getLiteType() |
WireFormat.FieldType |
GeneratedMessageLite.ExtensionDescriptor.getLiteType() |
WireFormat.FieldType |
GeneratedMessageLite.GeneratedExtension.getLiteType() |
abstract WireFormat.FieldType |
ExtensionLite.getLiteType()
Returns the type of the field.
|
WireFormat.FieldType |
Descriptors.FieldDescriptor.getLiteType()
For internal use only.
|
WireFormat.FieldType |
FieldSet.FieldDescriptorLite.getLiteType() |
static WireFormat.FieldType |
WireFormat.FieldType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WireFormat.FieldType[] |
WireFormat.FieldType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
(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.
|
(package private) static int |
FieldSet.getWireFormatForFieldType(WireFormat.FieldType type,
boolean isPacked)
Given a field type, return the wire type.
|
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.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.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) |
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.
|
private static void |
FieldSet.verifyType(WireFormat.FieldType type,
java.lang.Object value)
Verifies that the given object is of the correct type to be a valid
value for the given field.
|
(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.
|
Constructor and Description |
---|
ExtensionDescriptor(Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isRepeated,
boolean isPacked) |
MapEntry(Descriptors.Descriptor descriptor,
WireFormat.FieldType keyType,
K defaultKey,
WireFormat.FieldType valueType,
V defaultValue)
Create a default MapEntry instance.
|
MapEntryLite(WireFormat.FieldType keyType,
K defaultKey,
WireFormat.FieldType valueType,
V defaultValue)
Creates a default MapEntryLite message instance.
|
Metadata(Descriptors.Descriptor descriptor,
MapEntry<K,V> defaultInstance,
WireFormat.FieldType keyType,
WireFormat.FieldType valueType) |
Metadata(WireFormat.FieldType keyType,
K defaultKey,
WireFormat.FieldType valueType,
V defaultValue) |