Modifier and Type | Method and Description |
---|---|
Descriptors.Descriptor |
Descriptors.FileDescriptor.findMessageTypeByName(String name)
Find a message type in the file by name.
|
Descriptors.Descriptor |
Descriptors.Descriptor.findNestedTypeByName(String name)
Finds a nested message type by name.
|
Descriptors.Descriptor |
Descriptors.Descriptor.getContainingType()
If this is a nested type, get the outer descriptor, otherwise null.
|
Descriptors.Descriptor |
Descriptors.FieldDescriptor.getContainingType()
Get the field's containing type.
|
Descriptors.Descriptor |
Descriptors.EnumDescriptor.getContainingType()
If this is a nested type, get the outer descriptor, otherwise null.
|
Descriptors.Descriptor |
Descriptors.OneofDescriptor.getContainingType() |
Descriptors.Descriptor |
DynamicMessage.getDescriptorForType() |
Descriptors.Descriptor |
DynamicMessage.Builder.getDescriptorForType() |
Descriptors.Descriptor |
MessageOrBuilder.getDescriptorForType()
Get the message's type's descriptor.
|
Descriptors.Descriptor |
GeneratedMessage.getDescriptorForType() |
Descriptors.Descriptor |
GeneratedMessage.Builder.getDescriptorForType() |
Descriptors.Descriptor |
Message.Builder.getDescriptorForType()
Get the message's type's descriptor.
|
Descriptors.Descriptor |
Descriptors.FieldDescriptor.getExtensionScope()
For extensions defined nested within message types, gets the outer
type.
|
Descriptors.Descriptor |
Descriptors.MethodDescriptor.getInputType()
Get the method's input type.
|
Descriptors.Descriptor |
Descriptors.FieldDescriptor.getMessageType()
For embedded message and group fields, gets the field's type.
|
Descriptors.Descriptor |
Descriptors.MethodDescriptor.getOutputType()
Get the method's output type.
|
Modifier and Type | Method and Description |
---|---|
List<Descriptors.Descriptor> |
Descriptors.FileDescriptor.getMessageTypes()
Get a list of top-level message types declared in this file.
|
List<Descriptors.Descriptor> |
Descriptors.Descriptor.getNestedTypes()
Get a list of message types nested within this one.
|
Modifier and Type | Method and Description |
---|---|
ExtensionRegistry.ExtensionInfo |
ExtensionRegistry.findExtensionByNumber(Descriptors.Descriptor containingType,
int fieldNumber)
Deprecated.
|
ExtensionRegistry.ExtensionInfo |
ExtensionRegistry.findImmutableExtensionByNumber(Descriptors.Descriptor containingType,
int fieldNumber)
Find an extension by containing type and field number for immutable APIs.
|
ExtensionRegistry.ExtensionInfo |
ExtensionRegistry.findMutableExtensionByNumber(Descriptors.Descriptor containingType,
int fieldNumber)
Find an extension by containing type and field number for mutable APIs.
|
static DynamicMessage |
DynamicMessage.getDefaultInstance(Descriptors.Descriptor type)
Get a
DynamicMessage representing the default instance of the
given type. |
static DynamicMessage.Builder |
DynamicMessage.newBuilder(Descriptors.Descriptor type)
Construct a
Message.Builder for the given type. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
byte[] data)
Parse
data as a message of the given type and return it. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
byte[] data,
ExtensionRegistry extensionRegistry)
Parse
data as a message of the given type and return it. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
ByteString data)
Parse
data as a message of the given type and return it. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
ByteString data,
ExtensionRegistry extensionRegistry)
Parse
data as a message of the given type and return it. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
CodedInputStream input)
Parse a message of the given type from the given input stream.
|
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
CodedInputStream input,
ExtensionRegistry extensionRegistry)
Parse a message of the given type from the given input stream.
|
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
InputStream input)
Parse a message of the given type from
input and return it. |
static DynamicMessage |
DynamicMessage.parseFrom(Descriptors.Descriptor type,
InputStream input,
ExtensionRegistry extensionRegistry)
Parse a message of the given type from
input and return it. |
Constructor and Description |
---|
GeneratedMessage.FieldAccessorTable(Descriptors.Descriptor descriptor,
String[] camelCaseNames)
Construct a FieldAccessorTable for a particular message class without
initializing FieldAccessors.
|
GeneratedMessage.FieldAccessorTable(Descriptors.Descriptor descriptor,
String[] camelCaseNames,
Class<? extends GeneratedMessage> messageClass,
Class<? extends GeneratedMessage.Builder> builderClass)
Construct a FieldAccessorTable for a particular message class.
|
Copyright © 2008-2014 Google. All Rights Reserved.