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

#import <GPBDescriptor.h>

Inheritance diagram for GPBFieldDescriptor:
Inheritance graph
[legend]

Instance Methods

(instancetype) - initWithFieldDescription:includesDefault:syntax: [implementation]
 
(instancetype) - initWithFieldDescription:includesDefault:usesClassRefs:proto3OptionalKnown:syntax: [implementation]
 
(BOOL- isValidEnumValue:
 
(BOOL- isValidEnumValue:
 
(nullable NSString *) - textFormatName
 
(nullable NSString *) - textFormatName
 

Protected Attributes

GPB_UNSAFE_UNRETAINED GPBOneofDescriptorcontainingOneof_
 
package GPBMessageFieldDescriptiondescription_
 
SEL getSel_
 
SEL hasOrCountSel_
 
SEL setHasSel_
 
SEL setSel_
 

Properties

GPBOneofDescriptorcontainingOneof
 
GPBDataType dataType
 
GPBGenericValue defaultValue
 
GPBEnumDescriptorenumDescriptor
 
GPBFieldType fieldType
 
BOOL hasDefaultValue
 
GPBDataType mapKeyDataType
 
Class msgClass
 
NSString * name
 
uint32_t number
 
BOOL optional
 
BOOL packable
 
BOOL required
 

Detailed Description

Describes a proto field.

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

Method Documentation

◆ initWithFieldDescription:includesDefault:syntax:

- (instancetype) initWithFieldDescription: (void *)  description
includesDefault: (BOOL includesDefault
syntax: (GPBFileSyntax)  syntax 
implementation

◆ initWithFieldDescription:includesDefault:usesClassRefs:proto3OptionalKnown:syntax:

- (instancetype) initWithFieldDescription: (void *)  description
includesDefault: (BOOL includesDefault
usesClassRefs: (BOOL usesClassRefs
proto3OptionalKnown: (BOOL proto3OptionalKnown
syntax: (GPBFileSyntax)  syntax 
implementation

◆ isValidEnumValue: [1/2]

- (BOOL) isValidEnumValue: (int32_t value

Checks whether the given enum raw value is a valid enum value.

Parameters
valueThe raw enum value to check.
Returns
YES if value is a valid enum raw value.

◆ isValidEnumValue: [2/2]

- (BOOL) isValidEnumValue: (int32_t value

Checks whether the given enum raw value is a valid enum value.

Parameters
valueThe raw enum value to check.
Returns
YES if value is a valid enum raw value.

◆ textFormatName [1/2]

- (nullable NSString *) textFormatName
Returns
Name for the text format, or nil if not known.

◆ textFormatName [2/2]

- (nullable NSString *) textFormatName
Returns
Name for the text format, or nil if not known.

Member Data Documentation

◆ containingOneof_

- (GPB_UNSAFE_UNRETAINED GPBOneofDescriptor *) containingOneof_
protected

◆ description_

- (package GPBMessageFieldDescription *) description_
protected

◆ getSel_

- (SEL) getSel_
protected

◆ hasOrCountSel_

- (SEL) hasOrCountSel_
protected

◆ setHasSel_

- (SEL) setHasSel_
protected

◆ setSel_

- (SEL) setSel_
protected

Property Documentation

◆ containingOneof

- (GPBOneofDescriptor *) containingOneof
readnonatomicassign

The containing oneof if this field is part of one, nil otherwise.

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

◆ dataType

- (GPBDataType) dataType
readnonatomicassign

Data type contained in the field.

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

◆ defaultValue

- (GPBGenericValue) defaultValue
readnonatomicassign

Default value for the field.

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

◆ enumDescriptor

- (GPBEnumDescriptor *) enumDescriptor
readnonatomicstrong

Descriptor for the enum if this field is an enum.

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

◆ fieldType

- (GPBFieldType) fieldType
readnonatomicassign

Type of field (single, repeated, map).

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

◆ hasDefaultValue

- (BOOL) hasDefaultValue
readnonatomicassign

Whether it has a default value or not.

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

◆ mapKeyDataType

- (GPBDataType) mapKeyDataType
readnonatomicassign

Type of the key if the field is a map. The value's type is -fieldType.

Type of the key if the field is a map. The value's type is -dataType.

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

◆ msgClass

- (Class) msgClass
readnonatomicassign

Class of the message if the field is of message type.

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

◆ name

- (NSString *) name
readnonatomiccopy

Name of the field.

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

◆ number

- (uint32_t) number
readnonatomicassign

Number associated with the field.

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

◆ optional

- (BOOL) optional
readnonatomicassign

Whether this field is optional.

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

◆ packable

- (BOOL) packable
readnonatomicassign

Whether the field is packable.

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

◆ required

- (BOOL) required
readnonatomicassign

Whether this field is required. Only valid for proto2 fields.

Definition at line 180 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:45