Classes | Static Private Member Functions | Static Private Attributes | List of all members
com.google.protobuf.Descriptors Class Reference

Classes

class  Descriptor
 
class  DescriptorPool
 
class  DescriptorValidationException
 
class  EnumDescriptor
 
class  EnumValueDescriptor
 
class  FieldDescriptor
 
class  FileDescriptor
 
class  GenericDescriptor
 
class  MethodDescriptor
 
interface  NumberGetter
 
class  OneofDescriptor
 
class  ServiceDescriptor
 

Static Private Member Functions

static< T > T binarySearch (T[] array, int size, NumberGetter< T > getter, int number)
 
static String computeFullName (final FileDescriptor file, final Descriptor parent, final String name)
 
static String computeFullName (final FileDescriptor file, final Descriptor parent, final String name)
 

Static Private Attributes

static final Descriptor[] EMPTY_DESCRIPTORS = new Descriptor[0]
 
static final EnumDescriptor[] EMPTY_ENUM_DESCRIPTORS = new EnumDescriptor[0]
 
static final FieldDescriptor[] EMPTY_FIELD_DESCRIPTORS = new FieldDescriptor[0]
 
static final int[] EMPTY_INT_ARRAY = new int[0]
 
static final OneofDescriptor[] EMPTY_ONEOF_DESCRIPTORS = new OneofDescriptor[0]
 
static final ServiceDescriptor[] EMPTY_SERVICE_DESCRIPTORS = new ServiceDescriptor[0]
 
static final Logger logger = Logger.getLogger(Descriptors.class.getName())
 

Detailed Description

Contains a collection of classes which describe protocol message types.

Every message type has a Descriptor, which lists all its fields and other information about a type. You can get a message type's descriptor by calling

MessageType.getDescriptor()

, or (given a message object of the type)

message.getDescriptorForType()

. Furthermore, each message is associated with a {} for a relevant .proto file. You can obtain it by calling Descriptor.getFile() . A FileDescriptor} contains descriptors for all the messages defined in that file, and file descriptors for all the imported .proto files. Descriptors are built from DescriptorProtos, as defined in

.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Definition at line 80 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

Member Function Documentation

◆ binarySearch()

static <T> T com.google.protobuf.Descriptors.binarySearch ( T[]  array,
int  size,
NumberGetter< T getter,
int  number 
)
inlinestaticprivate

◆ computeFullName() [1/2]

static String com.google.protobuf.Descriptors.computeFullName ( final FileDescriptor  file,
final Descriptor  parent,
final String  name 
)
inlinestaticprivate

◆ computeFullName() [2/2]

static String com.google.protobuf.Descriptors.computeFullName ( final FileDescriptor  file,
final Descriptor  parent,
final String  name 
)
inlinestaticprivate

Member Data Documentation

◆ EMPTY_DESCRIPTORS

final Descriptor [] com.google.protobuf.Descriptors.EMPTY_DESCRIPTORS = new Descriptor[0]
staticprivate

◆ EMPTY_ENUM_DESCRIPTORS

final EnumDescriptor [] com.google.protobuf.Descriptors.EMPTY_ENUM_DESCRIPTORS = new EnumDescriptor[0]
staticprivate

◆ EMPTY_FIELD_DESCRIPTORS

final FieldDescriptor [] com.google.protobuf.Descriptors.EMPTY_FIELD_DESCRIPTORS = new FieldDescriptor[0]
staticprivate

◆ EMPTY_INT_ARRAY

final int [] com.google.protobuf.Descriptors.EMPTY_INT_ARRAY = new int[0]
staticprivate

◆ EMPTY_ONEOF_DESCRIPTORS

final OneofDescriptor [] com.google.protobuf.Descriptors.EMPTY_ONEOF_DESCRIPTORS = new OneofDescriptor[0]
staticprivate

◆ EMPTY_SERVICE_DESCRIPTORS

final ServiceDescriptor [] com.google.protobuf.Descriptors.EMPTY_SERVICE_DESCRIPTORS = new ServiceDescriptor[0]
staticprivate

◆ logger

static final Logger com.google.protobuf.Descriptors.logger = Logger.getLogger(Descriptors.class.getName())
staticprivate

The documentation for this class was generated from the following file:
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
descriptor
static const char descriptor[1336]
Definition: certs.upbdefs.c:16
google
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:11


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:04