Package | Description |
---|---|
com.google.protobuf.nano |
Modifier and Type | Class and Description |
---|---|
class |
ExtendableMessageNano<M extends ExtendableMessageNano<M>>
Base class of those Protocol Buffer messages that need to store unknown fields,
such as extensions.
|
Modifier and Type | Method and Description |
---|---|
static <M extends ExtendableMessageNano<M>,T extends MessageNano> |
Extension.createMessageTyped(int type,
Class<T> clazz,
int tag)
Deprecated.
use
Extension.createMessageTyped(int, Class, long) instead. |
static <M extends ExtendableMessageNano<M>,T extends MessageNano> |
Extension.createMessageTyped(int type,
Class<T> clazz,
long tag)
Creates an
Extension of the given message type and tag number. |
static <M extends ExtendableMessageNano<M>,T extends MessageNano> |
Extension.createRepeatedMessageTyped(int type,
Class<T[]> clazz,
long tag)
Creates a repeated
Extension of the given message type and tag number. |
static <T extends MessageNano> |
MessageNano.mergeFrom(T msg,
byte[] data)
Parse
data as a message of this type and merge it with the
message being built. |
static <T extends MessageNano> |
MessageNano.mergeFrom(T msg,
byte[] data,
int off,
int len)
Parse
data as a message of this type and merge it with the
message being built. |
static <T extends MessageNano> |
MessageNanoPrinter.print(T message)
Returns an text representation of a MessageNano suitable for debugging.
|
Modifier and Type | Method and Description |
---|---|
MessageNano |
MessageNano.clone()
Provides support for cloning.
|
abstract MessageNano |
MessageNano.mergeFrom(CodedInputByteBufferNano input)
Parse
input as a message of this type and merge it with the
message being built. |
Modifier and Type | Method and Description |
---|---|
static int |
CodedOutputByteBufferNano.computeGroupSize(int fieldNumber,
MessageNano value)
Compute the number of bytes that would be needed to encode a
group field, including tag. |
static int |
CodedOutputByteBufferNano.computeGroupSizeNoTag(MessageNano value)
Compute the number of bytes that would be needed to encode a
group field. |
static int |
CodedOutputByteBufferNano.computeMessageSize(int fieldNumber,
MessageNano value)
Compute the number of bytes that would be needed to encode an
embedded message field, including tag.
|
static int |
CodedOutputByteBufferNano.computeMessageSizeNoTag(MessageNano value)
Compute the number of bytes that would be needed to encode an embedded
message field.
|
static boolean |
MessageNano.messageNanoEquals(MessageNano a,
MessageNano b)
Compares two
MessageNano s and returns true if the message's are the same class and
have serialized form equality (i.e. |
void |
CodedInputByteBufferNano.readGroup(MessageNano msg,
int fieldNumber)
Read a
group field value from the stream. |
void |
CodedInputByteBufferNano.readMessage(MessageNano msg) |
static byte[] |
MessageNano.toByteArray(MessageNano msg)
Serialize to a byte array.
|
static void |
MessageNano.toByteArray(MessageNano msg,
byte[] data,
int offset,
int length)
Serialize to a byte array starting at offset through length.
|
void |
CodedOutputByteBufferNano.writeGroup(int fieldNumber,
MessageNano value)
Write a
group field, including tag, to the stream. |
void |
CodedOutputByteBufferNano.writeGroupNoTag(MessageNano value)
Write a
group field to the stream. |
void |
CodedOutputByteBufferNano.writeMessage(int fieldNumber,
MessageNano value)
Write an embedded message field, including tag, to the stream.
|
void |
CodedOutputByteBufferNano.writeMessageNoTag(MessageNano value)
Write an embedded message field to the stream.
|
Copyright © 2008–2017. All rights reserved.