|
static DynamicMessage | getDefaultInstance (Descriptor type) |
|
static DynamicMessage | parseFrom (Descriptor type, CodedInputStream input) throws IOException |
|
static DynamicMessage | parseFrom (Descriptor type, CodedInputStream input, ExtensionRegistry extensionRegistry) throws IOException |
|
static DynamicMessage | parseFrom (Descriptor type, ByteString data) throws InvalidProtocolBufferException |
|
static DynamicMessage | parseFrom (Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) throws InvalidProtocolBufferException |
|
static DynamicMessage | parseFrom (Descriptor type, byte[] data) throws InvalidProtocolBufferException |
|
static DynamicMessage | parseFrom (Descriptor type, byte[] data, ExtensionRegistry extensionRegistry) throws InvalidProtocolBufferException |
|
static DynamicMessage | parseFrom (Descriptor type, InputStream input) throws IOException |
|
static DynamicMessage | parseFrom (Descriptor type, InputStream input, ExtensionRegistry extensionRegistry) throws IOException |
|
static Builder | newBuilder (Descriptor type) |
|
static Builder | newBuilder (Message prototype) |
|
An implementation of Message that can represent arbitrary types, given a Descriptors.Descriptor.
- Author
- kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda
◆ getAllFields()
Returns a collection of all the fields in this message which are set and their corresponding values. A singular ("required" or "optional") field is set iff hasField() returns true for that field. A "repeated" field is set iff getRepeatedFieldCount() is greater than zero. The values are exactly what would be returned by calling getField(Descriptors.FieldDescriptor) for each field. The map is guaranteed to be a sorted map, so iterating over it will return fields in order by field number.
If this is for a builder, the returned map may or may not reflect future changes to the builder. Either way, the returned map is itself unmodifiable.
Implements com.google.protobuf.MessageOrBuilder.
◆ getDefaultInstance()
Get a
representing the default instance of the given type.
◆ getDefaultInstanceForType()
DynamicMessage com.google.protobuf.DynamicMessage.getDefaultInstanceForType |
( |
| ) |
|
|
inline |
Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the
method of generated message classes in that this method is an abstract method of the
interface whereas
is a static method of a specific class. They return the same thing.
Implements com.google.protobuf.MessageOrBuilder.
◆ getDescriptorForType()
Descriptor com.google.protobuf.DynamicMessage.getDescriptorForType |
( |
| ) |
|
|
inline |
Get the message's type's descriptor. This differs from the
method of generated message classes in that this method is an abstract method of the
interface whereas
is a static method of a specific class. They return the same thing.
Implements com.google.protobuf.MessageOrBuilder.
◆ getField()
◆ getOneofFieldDescriptor()
◆ getParserForType()
◆ getRepeatedField()
◆ getRepeatedFieldCount()
int com.google.protobuf.DynamicMessage.getRepeatedFieldCount |
( |
FieldDescriptor |
field | ) |
|
|
inline |
◆ getSerializedSize()
int com.google.protobuf.DynamicMessage.getSerializedSize |
( |
| ) |
|
|
inline |
Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that.
Implements com.google.protobuf.MessageLite.
◆ getUnknownFields()
◆ hasField()
◆ hasOneof()
◆ isInitialized()
boolean com.google.protobuf.DynamicMessage.isInitialized |
( |
| ) |
|
|
inline |
◆ newBuilder() [1/2]
◆ newBuilder() [2/2]
static Builder com.google.protobuf.DynamicMessage.newBuilder |
( |
Message |
prototype | ) |
|
|
inlinestatic |
Construct a Message.Builder for a message of the same type as
, and initialize it with
's contents.
◆ newBuilderForType()
Builder com.google.protobuf.DynamicMessage.newBuilderForType |
( |
| ) |
|
|
inline |
◆ parseFrom() [1/8]
Parse a message of the given type from the given input stream.
◆ parseFrom() [2/8]
Parse a message of the given type from the given input stream.
◆ parseFrom() [3/8]
Parse
as a message of the given type and return it.
◆ parseFrom() [4/8]
Parse
as a message of the given type and return it.
◆ parseFrom() [5/8]
Parse
as a message of the given type and return it.
◆ parseFrom() [6/8]
Parse
as a message of the given type and return it.
◆ parseFrom() [7/8]
static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom |
( |
Descriptor |
type, |
|
|
InputStream |
input |
|
) |
| throws IOException |
|
inlinestatic |
Parse a message of the given type from
and return it.
◆ parseFrom() [8/8]
Parse a message of the given type from
and return it.
◆ toBuilder()
Builder com.google.protobuf.DynamicMessage.toBuilder |
( |
| ) |
|
|
inline |
Constructs a builder initialized with the current message. Use this to derive a new message from the current one.
Implements com.google.protobuf.Message.
◆ writeTo()
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/third_party/protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java