Uses of Class
com.google.protobuf.Descriptors.Descriptor
-
Packages that use Descriptors.Descriptor Package Description com.google.protobuf com.google.protobuf.compiler com.google.protobuf.util -
-
Uses of Descriptors.Descriptor in com.google.protobuf
Fields in com.google.protobuf declared as Descriptors.Descriptor Modifier and Type Field Description private Descriptors.Descriptor
Descriptors.Descriptor. containingType
private Descriptors.Descriptor
Descriptors.EnumDescriptor. containingType
private Descriptors.Descriptor
Descriptors.FieldDescriptor. containingType
private Descriptors.Descriptor
Descriptors.OneofDescriptor. containingType
(package private) Descriptors.Descriptor
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.Node. descriptor
private Descriptors.Descriptor
ExtensionRegistry.DescriptorIntPair. descriptor
private Descriptors.Descriptor
GeneratedMessage.FieldAccessorTable. descriptor
private Descriptors.Descriptor
GeneratedMessage.FieldAccessorTable.RealOneofAccessor. descriptor
Descriptors.Descriptor
MapEntry.Metadata. descriptor
private static Descriptors.Descriptor[]
Descriptors. EMPTY_DESCRIPTORS
private Descriptors.Descriptor
Descriptors.FieldDescriptor. extensionScope
private Descriptors.Descriptor
Descriptors.MethodDescriptor. inputType
private static Descriptors.Descriptor
JavaFeaturesProto. internal_static_pb_JavaFeatures_descriptor
private Descriptors.Descriptor
Descriptors.FieldDescriptor. messageType
private Descriptors.Descriptor[]
Descriptors.FileDescriptor. messageTypes
private Descriptors.Descriptor[]
Descriptors.Descriptor. nestedTypes
private Descriptors.Descriptor
Descriptors.MethodDescriptor. outputType
private Descriptors.Descriptor
DynamicMessage.Builder. type
private Descriptors.Descriptor
DynamicMessage. type
Fields in com.google.protobuf with type parameters of type Descriptors.Descriptor Modifier and Type Field Description (package private) java.util.List<Descriptors.Descriptor>
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.StronglyConnectedComponent. messages
private java.util.Map<Descriptors.Descriptor,DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.Node>
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer. nodeCache
private java.util.Map<Descriptors.Descriptor,java.lang.Boolean>
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer. resultCache
private java.util.Map<java.lang.String,Descriptors.Descriptor>
TypeRegistry.Builder. types
private java.util.Map<java.lang.String,Descriptors.Descriptor>
TypeRegistry. types
Methods in com.google.protobuf that return Descriptors.Descriptor Modifier and Type Method Description private static Descriptors.Descriptor
DescriptorMessageInfoFactory. descriptorForType(java.lang.Class<?> messageType)
Descriptors.Descriptor
TypeRegistry. find(java.lang.String name)
Find a type by its full name.Descriptors.Descriptor
Descriptors.FileDescriptor. findMessageTypeByName(java.lang.String name)
Find a message type in the file by name.Descriptors.Descriptor
Descriptors.Descriptor. findNestedTypeByName(java.lang.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.EnumDescriptor. 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.OneofDescriptor. getContainingType()
static Descriptors.Descriptor
JavaFeaturesProto.JavaFeatures.Builder. getDescriptor()
static Descriptors.Descriptor
JavaFeaturesProto.JavaFeatures. getDescriptor()
Descriptors.Descriptor
DynamicMessage.Builder. getDescriptorForType()
Descriptors.Descriptor
DynamicMessage. getDescriptorForType()
Descriptors.Descriptor
GeneratedMessage.Builder. getDescriptorForType()
Descriptors.Descriptor
GeneratedMessage. getDescriptorForType()
Descriptors.Descriptor
JavaFeaturesProto.JavaFeatures.Builder. getDescriptorForType()
Descriptors.Descriptor
MapEntry.Builder. getDescriptorForType()
Descriptors.Descriptor
MapEntry. getDescriptorForType()
Descriptors.Descriptor
Message.Builder. getDescriptorForType()
Get the message's type's descriptor.Descriptors.Descriptor
MessageOrBuilder. getDescriptorForType()
Get the message's type's descriptor.Descriptors.Descriptor
MessageReflection.BuilderAdapter. getDescriptorForType()
Descriptors.Descriptor
MessageReflection.ExtensionAdapter. getDescriptorForType()
Descriptors.Descriptor
MessageReflection.ExtensionBuilderAdapter. getDescriptorForType()
Descriptors.Descriptor
MessageReflection.MergeTarget. getDescriptorForType()
Returns the descriptor for the target.Descriptors.Descriptor
TypeRegistry. getDescriptorForTypeUrl(java.lang.String typeUrl)
Find a type by its typeUrl.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.Methods in com.google.protobuf that return types with arguments of type Descriptors.Descriptor Modifier and Type Method Description java.util.List<Descriptors.Descriptor>
Descriptors.FileDescriptor. getMessageTypes()
Get a list of top-level message types declared in this file.java.util.List<Descriptors.Descriptor>
Descriptors.Descriptor. getNestedTypes()
Get a list of message types nested within this one.Methods in com.google.protobuf with parameters of type Descriptors.Descriptor Modifier and Type Method Description TypeRegistry.Builder
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 thisTypeRegistry.Builder
.private void
TypeRegistry.Builder. addMessage(Descriptors.Descriptor message)
private static java.lang.String
Descriptors. computeFullName(Descriptors.FileDescriptor file, Descriptors.Descriptor parent, java.lang.String name)
private static MessageInfo
DescriptorMessageInfoFactory. convert(java.lang.Class<?> messageType, Descriptors.Descriptor messageDescriptor)
private void
TextFormat.Parser. detectSilentMarker(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor immediateMessageType, java.lang.String fieldName)
A valid silent marker appears between a field name and its value.private DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer.Node
DescriptorMessageInfoFactory.IsInitializedCheckAnalyzer. dfs(Descriptors.Descriptor descriptor)
ExtensionRegistry.ExtensionInfo
ExtensionRegistry. findExtensionByNumber(Descriptors.Descriptor containingType, int fieldNumber)
Deprecated.ExtensionRegistry.ExtensionInfo
MessageReflection.BuilderAdapter. findExtensionByNumber(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber)
ExtensionRegistry.ExtensionInfo
MessageReflection.ExtensionAdapter. findExtensionByNumber(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber)
ExtensionRegistry.ExtensionInfo
MessageReflection.ExtensionBuilderAdapter. findExtensionByNumber(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber)
ExtensionRegistry.ExtensionInfo
MessageReflection.MergeTarget. findExtensionByNumber(ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber)
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 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, java.util.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, java.io.InputStream input)
Parse a message of the given type frominput
and return it.static DynamicMessage
DynamicMessage. parseFrom(Descriptors.Descriptor type, java.io.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.Descriptor Modifier and Type Method Description TypeRegistry.Builder
TypeRegistry.Builder. add(java.lang.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.Descriptor Constructor Description Builder(Descriptors.Descriptor type)
Construct aBuilder
for the given type.Descriptor(DescriptorProtos.DescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index)
DescriptorIntPair(Descriptors.Descriptor descriptor, int number)
DynamicMessage(Descriptors.Descriptor type, FieldSet<Descriptors.FieldDescriptor> fields, Descriptors.FieldDescriptor[] oneofCases, UnknownFieldSet unknownFields)
Construct aDynamicMessage
using the givenFieldSet
.EnumDescriptor(DescriptorProtos.EnumDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index)
FieldAccessorTable(Descriptors.Descriptor descriptor, java.lang.String[] camelCaseNames)
Construct a FieldAccessorTable for a particular message class without initializing FieldAccessors.FieldAccessorTable(Descriptors.Descriptor descriptor, java.lang.String[] camelCaseNames, java.lang.Class<? extends GeneratedMessage> messageClass, java.lang.Class<? extends GeneratedMessage.Builder<?>> builderClass)
Construct a FieldAccessorTable for a particular message class.FieldAccessorTable(Descriptors.Descriptor descriptor, java.lang.String[] camelCaseNames)
Deprecated.FieldAccessorTable(Descriptors.Descriptor descriptor, java.lang.String[] camelCaseNames, java.lang.Class<? extends GeneratedMessageV3> messageClass, java.lang.Class<? extends GeneratedMessageV3.Builder<?>> builderClass)
Deprecated.FieldDescriptor(DescriptorProtos.FieldDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index, boolean isExtension)
FileDescriptor(java.lang.String packageName, Descriptors.Descriptor message)
Create a placeholder FileDescriptor for a message Descriptor.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)
Node(Descriptors.Descriptor descriptor, int index)
OneofDescriptor(DescriptorProtos.OneofDescriptorProto proto, Descriptors.FileDescriptor file, Descriptors.Descriptor parent, int index)
RealOneofAccessor(Descriptors.Descriptor descriptor, java.lang.String camelCaseName, java.lang.Class<? extends GeneratedMessage> messageClass, java.lang.Class<? extends GeneratedMessage.Builder<?>> builderClass)
SyntheticOneofAccessor(Descriptors.Descriptor descriptor, int oneofIndex)
Constructor parameters in com.google.protobuf with type arguments of type Descriptors.Descriptor Constructor Description TypeRegistry(java.util.Map<java.lang.String,Descriptors.Descriptor> types)
-
Uses of Descriptors.Descriptor in com.google.protobuf.compiler
Fields in com.google.protobuf.compiler declared as Descriptors.Descriptor Modifier and Type Field Description private static Descriptors.Descriptor
PluginProtos. internal_static_google_protobuf_compiler_CodeGeneratorRequest_descriptor
private static Descriptors.Descriptor
PluginProtos. internal_static_google_protobuf_compiler_CodeGeneratorResponse_descriptor
private static Descriptors.Descriptor
PluginProtos. internal_static_google_protobuf_compiler_CodeGeneratorResponse_File_descriptor
private static Descriptors.Descriptor
PluginProtos. internal_static_google_protobuf_compiler_Version_descriptor
Methods in com.google.protobuf.compiler that return Descriptors.Descriptor Modifier and Type Method Description static Descriptors.Descriptor
PluginProtos.CodeGeneratorRequest.Builder. getDescriptor()
static Descriptors.Descriptor
PluginProtos.CodeGeneratorRequest. getDescriptor()
static Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.Builder. getDescriptor()
static Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.File.Builder. getDescriptor()
static Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.File. getDescriptor()
static Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse. getDescriptor()
static Descriptors.Descriptor
PluginProtos.Version.Builder. getDescriptor()
static Descriptors.Descriptor
PluginProtos.Version. getDescriptor()
Descriptors.Descriptor
PluginProtos.CodeGeneratorRequest.Builder. getDescriptorForType()
Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.Builder. getDescriptorForType()
Descriptors.Descriptor
PluginProtos.CodeGeneratorResponse.File.Builder. getDescriptorForType()
Descriptors.Descriptor
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.Descriptor Modifier and Type Field Description private java.util.Map<Descriptors.Descriptor,java.util.Map<java.lang.String,Descriptors.FieldDescriptor>>
JsonFormat.ParserImpl. fieldNameMaps
private java.util.Map<java.lang.String,Descriptors.Descriptor>
JsonFormat.TypeRegistry.Builder. types
private java.util.Map<java.lang.String,Descriptors.Descriptor>
JsonFormat.TypeRegistry. types
Methods in com.google.protobuf.util that return Descriptors.Descriptor Modifier and Type Method Description Descriptors.Descriptor
JsonFormat.TypeRegistry. find(java.lang.String name)
Find a type by its full name.(package private) Descriptors.Descriptor
JsonFormat.TypeRegistry. getDescriptorForTypeUrl(java.lang.String typeUrl)
Methods in com.google.protobuf.util with parameters of type Descriptors.Descriptor Modifier and Type Method Description JsonFormat.TypeRegistry.Builder
JsonFormat.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, java.lang.Iterable<java.lang.String> paths)
Constructs a FieldMask for a list of field paths in a certain type.private java.util.Map<java.lang.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, java.lang.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.Descriptor Modifier and Type Method Description JsonFormat.TypeRegistry.Builder
JsonFormat.TypeRegistry.Builder. add(java.lang.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, java.lang.Iterable<java.lang.String> paths)
Constructor parameters in com.google.protobuf.util with type arguments of type Descriptors.Descriptor Constructor Description TypeRegistry(java.util.Map<java.lang.String,Descriptors.Descriptor> types)
-