#import <GPBDescriptor.h>

Instance Methods | |
| (instancetype) | - initWithFieldDescription:includesDefault:syntax: [implementation] |
| (BOOL) | - isValidEnumValue: |
| (nullable NSString *) | - textFormatName |
Protected Attributes | |
| GPB_UNSAFE_UNRETAINED GPBOneofDescriptor * | containingOneof_ |
| package GPBMessageFieldDescription * | description_ |
| SEL | getSel_ |
| SEL | hasOrCountSel_ |
| SEL | setHasSel_ |
| SEL | setSel_ |
Properties | |
| GPBOneofDescriptor * | containingOneof |
| GPBDataType | dataType |
| GPBGenericValue | defaultValue |
| GPBEnumDescriptor * | enumDescriptor |
| GPBFieldType | fieldType |
| BOOL | hasDefaultValue |
| GPBDataType | mapKeyDataType |
| Class | msgClass |
| NSString * | name |
| uint32_t | number |
| BOOL | optional |
| BOOL | packable |
| BOOL | required |
Describes a proto field.
Definition at line 167 of file GPBDescriptor.h.
|
implementation |
| - (BOOL) isValidEnumValue: | (int32_t) | value |
Checks whether the given enum raw value is a valid enum value.
| value | The raw enum value to check. |
| - (nullable NSString *) textFormatName |
|
protected |
Definition at line 197 of file GPBDescriptor_PackagePrivate.h.
|
protected |
Definition at line 196 of file GPBDescriptor_PackagePrivate.h.
|
protected |
Definition at line 199 of file GPBDescriptor_PackagePrivate.h.
|
protected |
Definition at line 201 of file GPBDescriptor_PackagePrivate.h.
|
protected |
Definition at line 202 of file GPBDescriptor_PackagePrivate.h.
|
protected |
Definition at line 200 of file GPBDescriptor_PackagePrivate.h.
|
readnonatomicassign |
The containing oneof if this field is part of one, nil otherwise.
Definition at line 191 of file GPBDescriptor.h.
|
readnonatomicassign |
Data type contained in the field.
Definition at line 174 of file GPBDescriptor.h.
|
readnonatomicassign |
Default value for the field.
Definition at line 178 of file GPBDescriptor.h.
|
readnonatomicstrong |
Descriptor for the enum if this field is an enum.
Definition at line 197 of file GPBDescriptor.h.
|
readnonatomicassign |
Type of field (single, repeated, map).
Definition at line 184 of file GPBDescriptor.h.
|
readnonatomicassign |
Whether it has a default value or not.
Definition at line 176 of file GPBDescriptor.h.
|
readnonatomicassign |
Type of the key if the field is a map. The value's type is -fieldType.
Definition at line 186 of file GPBDescriptor.h.
|
readnonatomicassign |
Class of the message if the field is of message type.
Definition at line 194 of file GPBDescriptor.h.
|
readnonatomiccopy |
Name of the field.
Definition at line 170 of file GPBDescriptor.h.
|
readnonatomicassign |
Number associated with the field.
Definition at line 172 of file GPBDescriptor.h.
|
readnonatomicassign |
Whether this field is optional.
Definition at line 182 of file GPBDescriptor.h.
|
readnonatomicassign |
Whether the field is packable.
Definition at line 188 of file GPBDescriptor.h.
|
readnonatomicassign |
Whether this field is required. Only valid for proto2 fields.
Definition at line 180 of file GPBDescriptor.h.