Uses of Class
com.google.protobuf.Descriptors.Descriptor
Packages that use Descriptors.Descriptor
-
Uses of Descriptors.Descriptor in com.google.protobuf
Fields in com.google.protobuf declared as Descriptors.DescriptorModifier and TypeFieldDescriptionprivate final Descriptors.Descriptor
Descriptors.Descriptor.containingType
private final Descriptors.Descriptor
Descriptors.EnumDescriptor.containingType
private Descriptors.Descriptor
Descriptors.FieldDescriptor.containingType
private Descriptors.Descriptor
Descriptors.OneofDescriptor.containingType
(package private) final Descriptors.Descriptor
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.Node.descriptor
private final Descriptors.Descriptor
ExtensionRegistry.DescriptorIntPair.descriptor
private final Descriptors.Descriptor
GeneratedMessage.FieldAccessorTable.descriptor
private final Descriptors.Descriptor
GeneratedMessage.FieldAccessorTable.RealOneofAccessor.descriptor
final Descriptors.Descriptor
MapEntry.Metadata.descriptor
private static final Descriptors.Descriptor[]
Descriptors.EMPTY_DESCRIPTORS
private final Descriptors.Descriptor
Descriptors.FieldDescriptor.extensionScope
private Descriptors.Descriptor
Descriptors.MethodDescriptor.inputType
private static final Descriptors.Descriptor
JavaFeaturesProto.internal_static_pb_JavaFeatures_descriptor
private Descriptors.Descriptor
Descriptors.FieldDescriptor.messageType
private final Descriptors.Descriptor[]
Descriptors.FileDescriptor.messageTypes
private final Descriptors.Descriptor[]
Descriptors.Descriptor.nestedTypes
private Descriptors.Descriptor
Descriptors.MethodDescriptor.outputType
private final Descriptors.Descriptor
DynamicMessage.Builder.type
private final Descriptors.Descriptor
DynamicMessage.type
Fields in com.google.protobuf with type parameters of type Descriptors.DescriptorModifier and TypeFieldDescription(package private) final List
<Descriptors.Descriptor> DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.StronglyConnectedComponent.messages
private final Map
<Descriptors.Descriptor, DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.Node> DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.nodeCache
private final Map
<Descriptors.Descriptor, Boolean> DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.resultCache
private Map
<String, Descriptors.Descriptor> TypeRegistry.Builder.types
private final Map
<String, Descriptors.Descriptor> TypeRegistry.types
Methods in com.google.protobuf that return Descriptors.DescriptorModifier and TypeMethodDescriptionprivate static Descriptors.Descriptor
DescriptorMessageInfoFactory.descriptorForType
(Class<?> messageType) Find a type by its full name.Descriptors.FileDescriptor.findMessageTypeByName
(String name) Find a message type in the file by name.Descriptors.Descriptor.findNestedTypeByName
(String name) Finds a nested message type by name.Descriptors.Descriptor.getContainingType()
If this is a nested type, get the outer descriptor, otherwise null.Descriptors.EnumDescriptor.getContainingType()
If this is a nested type, get the outer descriptor, otherwise null.Descriptors.FieldDescriptor.getContainingType()
Get the field's containing type.Descriptors.OneofDescriptor.getContainingType()
static final Descriptors.Descriptor
JavaFeaturesProto.JavaFeatures.Builder.getDescriptor()
static final Descriptors.Descriptor
JavaFeaturesProto.JavaFeatures.getDescriptor()
DynamicMessage.Builder.getDescriptorForType()
DynamicMessage.getDescriptorForType()
GeneratedMessage.Builder.getDescriptorForType()
GeneratedMessage.getDescriptorForType()
JavaFeaturesProto.JavaFeatures.Builder.getDescriptorForType()
MapEntry.Builder.getDescriptorForType()
MapEntry.getDescriptorForType()
Message.Builder.getDescriptorForType()
Get the message's type's descriptor.MessageOrBuilder.getDescriptorForType()
Get the message's type's descriptor.MessageReflection.BuilderAdapter.getDescriptorForType()
MessageReflection.ExtensionAdapter.getDescriptorForType()
MessageReflection.ExtensionBuilderAdapter.getDescriptorForType()
MessageReflection.MergeTarget.getDescriptorForType()
Returns the descriptor for the target.final Descriptors.Descriptor
TypeRegistry.getDescriptorForTypeUrl
(String typeUrl) Find a type by its typeUrl.Descriptors.FieldDescriptor.getExtensionScope()
For extensions defined nested within message types, gets the outer type.Descriptors.MethodDescriptor.getInputType()
Get the method's input type.Descriptors.FieldDescriptor.getMessageType()
For embedded message and group fields, gets the field's type.Descriptors.MethodDescriptor.getOutputType()
Get the method's output type.Methods in com.google.protobuf that return types with arguments of type Descriptors.DescriptorModifier and TypeMethodDescriptionDescriptors.FileDescriptor.getMessageTypes()
Get a list of top-level message types declared in this file.Descriptors.Descriptor.getNestedTypes()
Get a list of message types nested within this one.Methods in com.google.protobuf with parameters of type Descriptors.DescriptorModifier and TypeMethodDescriptionTypeRegistry.Builder.add
(Descriptors.Descriptor messageType) Adds a message type and all types defined in the same .proto file as well as all transitively imported .proto files to thisTypeRegistry.Builder
.private void
TypeRegistry.Builder.addMessage
(Descriptors.Descriptor message) private static String
Descriptors.computeFullName
(Descriptors.FileDescriptor file, Descriptors.Descriptor parent, String name) private static MessageInfo
DescriptorMessageInfoFactory.convert
(Class<?> messageType, Descriptors.Descriptor messageDescriptor) private void
TextFormat.Parser.detectSilentMarker
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor immediateMessageType, String fieldName) A valid silent marker appears between a field name and its value.DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.dfs
(Descriptors.Descriptor descriptor) ExtensionRegistry.findExtensionByNumber
(Descriptors.Descriptor containingType, int fieldNumber) Deprecated.MessageReflection.BuilderAdapter.findExtensionByNumber
(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) MessageReflection.ExtensionAdapter.findExtensionByNumber
(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) MessageReflection.ExtensionBuilderAdapter.findExtensionByNumber
(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) MessageReflection.MergeTarget.findExtensionByNumber
(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) ExtensionRegistry.findImmutableExtensionByNumber
(Descriptors.Descriptor containingType, int fieldNumber) Find an extension by containing type and field number for immutable APIs.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 aDynamicMessage
representing the default instance of the given type.private void
TextFormat.Parser.guessFieldTypeAndSkip
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Tries to guess the type of this field and skip it.(package private) static boolean
DynamicMessage.isInitialized
(Descriptors.Descriptor type, FieldSet<Descriptors.FieldDescriptor> fields) private void
TextFormat.Parser.mergeAnyFieldValue
(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, Descriptors.Descriptor anyDescriptor, int recursionLimit) (package private) static boolean
MessageReflection.mergeFieldFrom
(CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, Descriptors.Descriptor type, MessageReflection.MergeTarget target, int tag) Parses a single field into MergeTarget.private static void
MessageReflection.mergeMessageSetExtensionFromCodedStream
(CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, Descriptors.Descriptor type, MessageReflection.MergeTarget target) Called by#mergeFieldFrom()
to parse a MessageSet extension into MergeTarget.boolean
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.needsIsInitializedCheck
(Descriptors.Descriptor descriptor) private static boolean
DescriptorMessageInfoFactory.needsIsInitializedCheck
(Descriptors.Descriptor descriptor) static DynamicMessage.Builder
DynamicMessage.newBuilder
(Descriptors.Descriptor type) Construct aMessage.Builder
for the given 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 DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, byte[] data) Parsedata
as a message of the given type and return it.static DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, byte[] data, ExtensionRegistry extensionRegistry) Parsedata
as a message of the given type and return it.static DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, ByteString data) Parsedata
as a message of the given type and return it.static DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) Parsedata
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 frominput
and return it.static DynamicMessage
DynamicMessage.parseFrom
(Descriptors.Descriptor type, InputStream input, ExtensionRegistry extensionRegistry) Parse a message of the given type frominput
and return it.private void
TextFormat.Parser.skipField
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Skips the next field including the field's name and value.private void
TextFormat.Parser.skipFieldMessage
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Skips the whole body of a message including the beginning delimiter and the ending delimiter.private void
TextFormat.Parser.skipFieldShortFormedRepeated
(TextFormat.Tokenizer tokenizer, boolean scalarAllowed, Descriptors.Descriptor type, int recursionLimit) Skips a short-formed repeated field value.Method parameters in com.google.protobuf with type arguments of type Descriptors.DescriptorModifier and TypeMethodDescriptionTypeRegistry.Builder.add
(Iterable<Descriptors.Descriptor> messageTypes) Adds message types and all types defined in the same .proto file as well as all transitively imported .proto files to thisTypeRegistry.Builder
.Constructors in com.google.protobuf with parameters of type Descriptors.DescriptorModifierConstructorDescriptionprivate
Construct aBuilder
for the given type.private
Descriptor
(DescriptorProtos.DescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index) (package private)
DescriptorIntPair
(Descriptors.Descriptor descriptor, int number) (package private)
DynamicMessage
(Descriptors.Descriptor type, FieldSet<Descriptors.FieldDescriptor> fields, Descriptors.FieldDescriptor[] oneofCases, UnknownFieldSet unknownFields) Construct aDynamicMessage
using the givenFieldSet
.private
EnumDescriptor
(DescriptorProtos.EnumDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index) FieldAccessorTable
(Descriptors.Descriptor descriptor, String[] camelCaseNames) Construct a FieldAccessorTable for a particular message class without initializing FieldAccessors.FieldAccessorTable
(Descriptors.Descriptor descriptor, String[] camelCaseNames, Class<? extends GeneratedMessage> messageClass, Class<? extends GeneratedMessage.Builder<?>> builderClass) Construct a FieldAccessorTable for a particular message class.FieldAccessorTable
(Descriptors.Descriptor descriptor, String[] camelCaseNames) Deprecated.FieldAccessorTable
(Descriptors.Descriptor descriptor, String[] camelCaseNames, Class<? extends GeneratedMessageV3> messageClass, Class<? extends GeneratedMessageV3.Builder<?>> builderClass) Deprecated.private
FieldDescriptor
(DescriptorProtos.FieldDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index, boolean isExtension) (package private)
FileDescriptor
(String packageName, Descriptors.Descriptor message) Create a placeholder FileDescriptor for a message Descriptor.private
MapEntry
(Descriptors.Descriptor descriptor, WireFormat.FieldType keyType, K defaultKey, WireFormat.FieldType valueType, V defaultValue) Create a default MapEntry instance.Metadata
(Descriptors.Descriptor descriptor, MapEntry<K, V> defaultInstance, WireFormat.FieldType keyType, WireFormat.FieldType valueType) (package private)
Node
(Descriptors.Descriptor descriptor, int index) private
OneofDescriptor
(DescriptorProtos.OneofDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index) (package private)
RealOneofAccessor
(Descriptors.Descriptor descriptor, String camelCaseName, Class<? extends GeneratedMessage> messageClass, Class<? extends GeneratedMessage.Builder<?>> builderClass) (package private)
SyntheticOneofAccessor
(Descriptors.Descriptor descriptor, int oneofIndex) Constructor parameters in com.google.protobuf with type arguments of type Descriptors.DescriptorModifierConstructorDescription(package private)
TypeRegistry
(Map<String, Descriptors.Descriptor> types) -
Uses of Descriptors.Descriptor in com.google.protobuf.compiler
Fields in com.google.protobuf.compiler declared as Descriptors.DescriptorModifier and TypeFieldDescriptionprivate static final Descriptors.Descriptor
private static final Descriptors.Descriptor
private static final Descriptors.Descriptor
private static final Descriptors.Descriptor
Methods in com.google.protobuf.compiler that return Descriptors.DescriptorModifier and TypeMethodDescriptionstatic final Descriptors.Descriptor
PluginProtos.CodeGeneratorRequest.Builder.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.CodeGeneratorRequest.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.Builder.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.File.Builder.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.File.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.Version.Builder.getDescriptor()
static final Descriptors.Descriptor
PluginProtos.Version.getDescriptor()
PluginProtos.CodeGeneratorRequest.Builder.getDescriptorForType()
PluginProtos.CodeGeneratorResponse.Builder.getDescriptorForType()
PluginProtos.CodeGeneratorResponse.File.Builder.getDescriptorForType()
PluginProtos.Version.Builder.getDescriptorForType()
-
Uses of Descriptors.Descriptor in com.google.protobuf.util
Fields in com.google.protobuf.util with type parameters of type Descriptors.DescriptorModifier and TypeFieldDescriptionprivate final Map
<Descriptors.Descriptor, Map<String, Descriptors.FieldDescriptor>> JsonFormat.ParserImpl.fieldNameMaps
private final Map
<String, Descriptors.Descriptor> JsonFormat.TypeRegistry.Builder.types
private final Map
<String, Descriptors.Descriptor> JsonFormat.TypeRegistry.types
Methods in com.google.protobuf.util that return Descriptors.DescriptorModifier and TypeMethodDescriptionFind a type by its full name.(package private) Descriptors.Descriptor
JsonFormat.TypeRegistry.getDescriptorForTypeUrl
(String typeUrl) Methods in com.google.protobuf.util with parameters of type Descriptors.DescriptorModifier and TypeMethodDescriptionJsonFormat.TypeRegistry.Builder.add
(Descriptors.Descriptor messageType) Adds a message type and all types defined in the same .proto file as well as all transitively imported .proto files to thisJsonFormat.TypeRegistry.Builder
.private void
JsonFormat.TypeRegistry.Builder.addMessage
(Descriptors.Descriptor message) static FieldMask
FieldMaskUtil.fromStringList
(Descriptors.Descriptor descriptor, Iterable<String> paths) Constructs a FieldMask for a list of field paths in a certain type.private Map
<String, Descriptors.FieldDescriptor> JsonFormat.ParserImpl.getFieldNameMap
(Descriptors.Descriptor descriptor) static boolean
FieldMaskUtil.isValid
(Descriptors.Descriptor descriptor, FieldMask fieldMask) Checks whether paths in a given fields mask are valid.static boolean
FieldMaskUtil.isValid
(Descriptors.Descriptor descriptor, String path) Checks whether paths in a given fields mask are valid.Method parameters in com.google.protobuf.util with type arguments of type Descriptors.DescriptorModifier and TypeMethodDescriptionJsonFormat.TypeRegistry.Builder.add
(Iterable<Descriptors.Descriptor> messageTypes) Adds message types and all types defined in the same .proto file as well as all transitively imported .proto files to thisJsonFormat.TypeRegistry.Builder
.private static FieldMask
FieldMaskUtil.fromStringList
(com.google.common.base.Optional<Descriptors.Descriptor> descriptor, Iterable<String> paths) Constructor parameters in com.google.protobuf.util with type arguments of type Descriptors.Descriptor