#import <GPBDescriptor.h>
Describes a proto message.
Definition at line 65 of file GPBDescriptor.h.
◆ allocDescriptorForClass:rootClass:file:fields:fieldCount:storageSize:flags:
+ (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:
Gets the field for the given name.
- Parameters
-
name | The name for the field to get. |
- Returns
- The field descriptor for the given name, or nil if not found.
◆ fieldWithNumber:
Gets the field for the given number.
- Parameters
-
fieldNumber | The number for the field to get. |
- Returns
- The field descriptor for the given number, or nil if not found.
◆ initWithClass:file:fields:storageSize:wireFormat:
- (instancetype) initWithClass: |
|
(Class) |
messageClass |
file: |
|
(GPBFileDescriptor *) |
file |
fields: |
|
(NSArray *) |
fields |
storageSize: |
|
(uint32_t) |
storage |
wireFormat: |
|
(BOOL) |
wireFormat |
|
|
| |
|
implementation |
◆ oneofWithName:
Gets the oneof for the given name.
- Parameters
-
name | The name for the oneof to get. |
- Returns
- The oneof descriptor for the given name, or nil if not found.
◆ setupContainingMessageClassName:
- (void) setupContainingMessageClassName: |
|
(const char *) |
msgClassName |
|
|
implementation |
◆ setupExtensionRanges:count:
◆ setupExtraTextInfo:
- (void) setupExtraTextInfo: |
|
(const char *) |
extraTextFormatInfo |
|
|
implementation |
◆ setupMessageClassNameSuffix:
- (void) setupMessageClassNameSuffix: |
|
(NSString *) |
suffix |
|
|
implementation |
◆ setupOneofs:count:firstHasIndex:
- (void) setupOneofs: |
|
(const char **) |
oneofNames |
count: |
|
(uint32_t) |
count |
firstHasIndex: |
|
(int32_t) |
firstHasIndex |
|
|
| |
|
implementation |
◆ fields_
◆ oneofs_
◆ storageSize_
- (uint32_t) storageSize_ |
|
protected |
◆ containingType
Containing message descriptor if this message is nested, or nil otherwise.
Definition at line 85 of file GPBDescriptor.h.
◆ extensionRanges
Extension range declared for the message.
Definition at line 74 of file GPBDescriptor.h.
◆ extensionRangesCount
- (uint32_t) extensionRangesCount |
|
readnonatomicassign |
Number of extension ranges declared for the message.
Definition at line 76 of file GPBDescriptor.h.
◆ fields
◆ file
◆ fullName
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 GPBDescriptor.h.
◆ messageClass
◆ name
◆ oneofs
◆ wireFormat
Whether the message is in wire format or not.
Definition at line 81 of file GPBDescriptor.h.
The documentation for this class was generated from the following file: