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

#import <GPBDescriptor.h>

Inheritance diagram for GPBOneofDescriptor:
Inheritance graph
[legend]

Instance Methods

(nullable GPBFieldDescriptor *) - fieldWithName:
 
(nullable GPBFieldDescriptor *) - fieldWithNumber:
 
(instancetype) - initWithName:fields: [implementation]
 

Protected Attributes

SEL caseSel_
 
NSArray * fields_
 
const package char * name_
 

Properties

NSArray< GPBFieldDescriptor * > * fields
 
NSString * name
 

Detailed Description

Describes a oneof field.

Definition at line 138 of file GPBDescriptor.h.

Method Documentation

◆ fieldWithName:

- (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:

- (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.

◆ initWithName:fields:

- (instancetype) initWithName: (const char *)  name
fields: (NSArray *)  fields 
implementation

Member Data Documentation

◆ caseSel_

- (SEL) caseSel_
protected

Definition at line 188 of file GPBDescriptor_PackagePrivate.h.

◆ fields_

- (NSArray*) fields_
protected

Definition at line 187 of file GPBDescriptor_PackagePrivate.h.

◆ name_

- (const package char*) name_
protected

Definition at line 186 of file GPBDescriptor_PackagePrivate.h.

Property Documentation

◆ fields

- (NSArray<GPBFieldDescriptor*>*) fields
readnonatomicassign

Fields declared in the oneof.

Definition at line 142 of file GPBDescriptor.h.

◆ name

- (NSString*) name
readnonatomicassign

Name of the oneof field.

Definition at line 140 of file GPBDescriptor.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:05