Instance Methods | Class Methods | List of all members
GPBUnknownFieldSet Class Reference

#import <GPBUnknownFieldSet.h>

Inheritance diagram for GPBUnknownFieldSet:
Inheritance graph
[legend]

Instance Methods

(void- addField:
 
(void- addUnknownMapEntry:value: [implementation]
 
(NSUInteger) - countOfFields
 
(NSData *) - data [implementation]
 
(nullable GPBUnknownField *) - getField:
 
(BOOL) - hasField:
 
(BOOL) - mergeFieldFrom:input: [implementation]
 
(void- mergeFromCodedInputStream: [implementation]
 
(void- mergeFromData: [implementation]
 
(void- mergeMessageSetMessage:data: [implementation]
 
(void- mergeUnknownFields: [implementation]
 
(void- mergeVarintField:value: [implementation]
 
(size_t) - serializedSize [implementation]
 
(size_t) - serializedSizeAsMessageSet [implementation]
 
(NSArray< GPBUnknownField * > *) - sortedFields
 
(void- writeAsMessageSetTo: [implementation]
 
(void- writeToCodedOutputStream: [implementation]
 

Class Methods

(BOOL) + isFieldTag: [implementation]
 

Detailed Description

A collection of unknown fields. Fields parsed from the binary representation of a message that are unknown end up in an instance of this set. This only applies for files declared with the "proto2" syntax. Files declared with the "proto3" syntax discard the unknown values.

Definition at line 43 of file GPBUnknownFieldSet.h.

Method Documentation

◆ addField:

- (void) addField: (GPBUnknownField *)  field

Adds the given field to the set.

Parameters
fieldThe field to add to the set.

◆ addUnknownMapEntry:value:

- (void) addUnknownMapEntry: (int32_t)  fieldNum
value: (NSData *)  data 
implementation

◆ countOfFields

- (NSUInteger) countOfFields
Returns
The number of fields in this set.

◆ data

- (NSData *) data
implementation

◆ getField:

- (nullable GPBUnknownField *) getField: (int32_t)  number

Fetches the GPBUnknownField for the given field number.

Parameters
numberThe field number to look up.
Returns
The GPBUnknownField or nil if none found.

◆ hasField:

- (BOOL) hasField: (int32_t)  number

Tests to see if the given field number has a value.

Parameters
numberThe field number to check.
Returns
YES if there is an unknown field for the given field number.

◆ isFieldTag:

+ (BOOL) isFieldTag: (int32_t)  tag
implementation

◆ mergeFieldFrom:input:

- (BOOL) mergeFieldFrom: (int32_t)  tag
input: (GPBCodedInputStream *)  input 
implementation

◆ mergeFromCodedInputStream:

- (void) mergeFromCodedInputStream: (GPBCodedInputStream *)  input
implementation

◆ mergeFromData:

- (void) mergeFromData: (NSData *)  data
implementation

◆ mergeMessageSetMessage:data:

- (void) mergeMessageSetMessage: (int32_t)  number
data: (NSData *)  messageData 
implementation

◆ mergeUnknownFields:

- (void) mergeUnknownFields: (GPBUnknownFieldSet *)  other
implementation

◆ mergeVarintField:value:

- (void) mergeVarintField: (int32_t)  number
value: (int32_t)  value 
implementation

◆ serializedSize

- (size_t) serializedSize
implementation

◆ serializedSizeAsMessageSet

- (size_t) serializedSizeAsMessageSet
implementation

◆ sortedFields

- (NSArray<GPBUnknownField *> *) sortedFields
Returns
An array of the GPBUnknownFields sorted by the field numbers.

◆ writeAsMessageSetTo:

- (void) writeAsMessageSetTo: (GPBCodedOutputStream *)  output
implementation

◆ writeToCodedOutputStream:

- (void) writeToCodedOutputStream: (GPBCodedOutputStream *)  output
implementation

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


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