Instance Methods | Class Methods | Protected Attributes | Properties | List of all members
GPBDescriptor Class Reference

#import <GPBDescriptor.h>

Inheritance diagram for GPBDescriptor:
Inheritance graph
[legend]

Instance Methods

(nullable GPBFieldDescriptor *) - fieldWithName:
 
(nullable GPBFieldDescriptor *) - fieldWithName:
 
(nullable GPBFieldDescriptor *) - fieldWithNumber:
 
(nullable GPBFieldDescriptor *) - fieldWithNumber:
 
(instancetype) - initWithClass:file:fields:storageSize:wireFormat: [implementation]
 
(instancetype) - initWithClass:file:fields:storageSize:wireFormat: [implementation]
 
(nullable GPBOneofDescriptor *) - oneofWithName:
 
(nullable GPBOneofDescriptor *) - oneofWithName:
 
(void) - setupContainingMessageClass: [implementation]
 
(void) - setupContainingMessageClassName: [implementation]
 
(void) - setupContainingMessageClassName: [implementation]
 
(void) - setupExtensionRanges:count: [implementation]
 
(void) - setupExtensionRanges:count: [implementation]
 
(void) - setupExtraTextInfo: [implementation]
 
(void) - setupExtraTextInfo: [implementation]
 
(void) - setupMessageClassNameSuffix: [implementation]
 
(void) - setupMessageClassNameSuffix: [implementation]
 
(void) - setupOneofs:count:firstHasIndex: [implementation]
 
(void) - setupOneofs:count:firstHasIndex: [implementation]
 

Class Methods

(instancetype) + allocDescriptorForClass:rootClass:file:fields:fieldCount:storageSize:flags: [implementation]
 
(instancetype) + allocDescriptorForClass:rootClass:file:fields:fieldCount:storageSize:flags: [implementation]
 

Protected Attributes

package NSArray * fields_
 
NSArray * oneofs_
 
uint32_t storageSize_
 

Properties

GPBDescriptorcontainingType
 
const GPBExtensionRangeextensionRanges
 
uint32_t extensionRangesCount
 
NSArray< GPBFieldDescriptor * > * fields
 
GPBFileDescriptorfile
 
NSString * fullName
 
Class messageClass
 
NSString * name
 
NSArray< GPBOneofDescriptor * > * oneofs
 
BOOL wireFormat
 

Detailed Description

Describes a proto message.

Definition at line 65 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

Method Documentation

◆ allocDescriptorForClass:rootClass:file:fields:fieldCount:storageSize:flags: [1/2]

+ (instancetype) allocDescriptorForClass: (Class)  messageClass
rootClass: (Class)  rootClass
file: (GPBFileDescriptor *)  file
fields: (void *)  fieldDescriptions
fieldCount: (uint32_t fieldCount
storageSize: (uint32_t storageSize
flags: (GPBDescriptorInitializationFlags)  flags 
implementation

◆ allocDescriptorForClass:rootClass:file:fields:fieldCount:storageSize:flags: [2/2]

+ (instancetype) allocDescriptorForClass: (Class)  messageClass
rootClass: (Class)  rootClass
file: (GPBFileDescriptor *)  file
fields: (void *)  fieldDescriptions
fieldCount: (uint32_t fieldCount
storageSize: (uint32_t storageSize
flags: (GPBDescriptorInitializationFlags)  flags 
implementation

◆ fieldWithName: [1/2]

- (nullable GPBFieldDescriptor *) fieldWithName: (NSString *)  name

Gets the field for the given name.

Parameters
nameThe name for the field to get.
Returns
The field descriptor for the given name, or nil if not found.

◆ fieldWithName: [2/2]

- (nullable GPBFieldDescriptor *) fieldWithName: (NSString *)  name

Gets the field for the given name.

Parameters
nameThe name for the field to get.
Returns
The field descriptor for the given name, or nil if not found.

◆ fieldWithNumber: [1/2]

- (nullable GPBFieldDescriptor *) fieldWithNumber: (uint32_t fieldNumber

Gets the field for the given number.

Parameters
fieldNumberThe number for the field to get.
Returns
The field descriptor for the given number, or nil if not found.

◆ fieldWithNumber: [2/2]

- (nullable GPBFieldDescriptor *) fieldWithNumber: (uint32_t fieldNumber

Gets the field for the given number.

Parameters
fieldNumberThe number for the field to get.
Returns
The field descriptor for the given number, or nil if not found.

◆ initWithClass:file:fields:storageSize:wireFormat: [1/2]

- (instancetype) initWithClass: (Class)  messageClass
file: (GPBFileDescriptor *)  file
fields: (NSArray *)  fields
storageSize: (uint32_t storage
wireFormat: (BOOL wireFormat 
implementation

◆ initWithClass:file:fields:storageSize:wireFormat: [2/2]

- (instancetype) initWithClass: (Class)  messageClass
file: (GPBFileDescriptor *)  file
fields: (NSArray *)  fields
storageSize: (uint32_t storage
wireFormat: (BOOL wireFormat 
implementation

◆ oneofWithName: [1/2]

- (nullable GPBOneofDescriptor *) oneofWithName: (NSString *)  name

Gets the oneof for the given name.

Parameters
nameThe name for the oneof to get.
Returns
The oneof descriptor for the given name, or nil if not found.

◆ oneofWithName: [2/2]

- (nullable GPBOneofDescriptor *) oneofWithName: (NSString *)  name

Gets the oneof for the given name.

Parameters
nameThe name for the oneof to get.
Returns
The oneof descriptor for the given name, or nil if not found.

◆ setupContainingMessageClass:

- (void) setupContainingMessageClass: (Class)  msgClass
implementation

◆ setupContainingMessageClassName: [1/2]

- (void) setupContainingMessageClassName: (const char *)  msgClassName
implementation

◆ setupContainingMessageClassName: [2/2]

- (void) setupContainingMessageClassName: (const char *)  msgClassName
implementation

◆ setupExtensionRanges:count: [1/2]

- (void) setupExtensionRanges: (const GPBExtensionRange *)  ranges
count: (int32_t count 
implementation

◆ setupExtensionRanges:count: [2/2]

- (void) setupExtensionRanges: (const GPBExtensionRange *)  ranges
count: (int32_t count 
implementation

◆ setupExtraTextInfo: [1/2]

- (void) setupExtraTextInfo: (const char *)  extraTextFormatInfo
implementation

◆ setupExtraTextInfo: [2/2]

- (void) setupExtraTextInfo: (const char *)  extraTextFormatInfo
implementation

◆ setupMessageClassNameSuffix: [1/2]

- (void) setupMessageClassNameSuffix: (NSString *)  suffix
implementation

◆ setupMessageClassNameSuffix: [2/2]

- (void) setupMessageClassNameSuffix: (NSString *)  suffix
implementation

◆ setupOneofs:count:firstHasIndex: [1/2]

- (void) setupOneofs: (const char **)  oneofNames
count: (uint32_t count
firstHasIndex: (int32_t firstHasIndex 
implementation

◆ setupOneofs:count:firstHasIndex: [2/2]

- (void) setupOneofs: (const char **)  oneofNames
count: (uint32_t count
firstHasIndex: (int32_t firstHasIndex 
implementation

Member Data Documentation

◆ fields_

- (package NSArray *) fields_
protected

◆ oneofs_

- (NSArray *) oneofs_
protected

◆ storageSize_

- (uint32_t) storageSize_
protected

Property Documentation

◆ containingType

- (GPBDescriptor *) containingType
readatomicassign

Containing message descriptor if this message is nested, or nil otherwise.

Definition at line 85 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ extensionRanges

- (const GPBExtensionRange *) extensionRanges
readnonatomicassign

Extension range declared for the message.

Definition at line 74 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ extensionRangesCount

- (uint32_t) extensionRangesCount
readnonatomicassign

Number of extension ranges declared for the message.

Definition at line 76 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ fields

- (NSArray< GPBFieldDescriptor * > *) fields
readnonatomicstrong

Fields declared in the message.

Definition at line 70 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ file

- (GPBFileDescriptor *) file
readnonatomicassign

Descriptor for the file where the message was defined.

Definition at line 78 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ fullName

- (NSString *) fullName
readatomicassign

Fully qualified name for this message (package.message). Can be nil if the value is unable to be computed.

Definition at line 90 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ messageClass

- (Class) messageClass
readnonatomicassign

The class of this message.

Definition at line 83 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ name

- (NSString *) name
readnonatomiccopy

Name of the message.

Definition at line 68 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ oneofs

- (NSArray< GPBOneofDescriptor * > *) oneofs
readnonatomicstrong

Oneofs declared in the message.

Definition at line 72 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.

◆ wireFormat

- (BOOL) wireFormat
readnonatomicassign

Whether the message is in wire format or not.

Definition at line 81 of file bloaty/third_party/protobuf/objectivec/GPBDescriptor.h.


The documentation for this class was generated from the following file:


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