webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Properties | List of all members
GPBField Class Reference

A single field of a message type. More...

#import <Type.pbobjc.h>

Inheritance diagram for GPBField:
GPBMessage NSObject

Properties

GPBField_Kind kind
 The field type. More...
 
GPBField_Cardinality cardinality
 The field cardinality. More...
 
int32_t number
 The field number. More...
 
NSStringname
 The field name. More...
 
NSStringtypeURL
 
int32_t oneofIndex
 
BOOL packed
 Whether to use alternative packed wire representation. More...
 
NSMutableArray< GPBOption * > * optionsArray
 The protocol buffer options. More...
 
NSUInteger optionsArray_Count
 The number of items in optionsArray without causing the array to be created. More...
 
NSStringjsonName
 The field JSON name. More...
 
NSStringdefaultValue
 The string value of the default value of this field. Proto2 syntax only. More...
 
- Properties inherited from GPBMessage
GPBUnknownFieldSetunknownFields
 
BOOL initialized
 Are all required fields set in the message and all embedded messages. More...
 

Additional Inherited Members

- Instance Methods inherited from GPBMessage
(instancetype) - initWithData:error:
 
(instancetype) - initWithData:extensionRegistry:error:
 
(instancetype) - initWithCodedInputStream:extensionRegistry:error:
 
(void- writeToCodedOutputStream:
 Writes out the message to the given output stream. More...
 
(void- writeToOutputStream:
 Writes out the message to the given output stream. More...
 
(void- writeDelimitedToCodedOutputStream:
 
(void- writeDelimitedToOutputStream:
 
(nullable NSData *) - data
 
(NSData *) - delimitedData
 
(size_t- serializedSize
 
(GPBDescriptor *) - descriptor
 Return the descriptor for the message. More...
 
(BOOL- hasExtension:
 Test to see if the given extension is set on the message. More...
 
(nullable id- getExtension:
 
(void- setExtension:value:
 
(void- addExtension:value:
 
(void- setExtension:index:value:
 
(void- clearExtension:
 Clears the given extension for this message. More...
 
(void- clear
 Resets all of the fields of this message to their default values. More...
 
(void- mergeFromData:extensionRegistry:
 
(void- mergeFrom:
 
- Class Methods inherited from GPBMessage
(instancetype) + message
 Returns an autoreleased instance. More...
 
(instancetype) + parseFromData:error:
 
(instancetype) + parseFromData:extensionRegistry:error:
 
(instancetype) + parseFromCodedInputStream:extensionRegistry:error:
 
(instancetype) + parseDelimitedFromCodedInputStream:extensionRegistry:error:
 
(GPBDescriptor *) + descriptor
 Return the descriptor for the message class. More...
 

Detailed Description

A single field of a message type.

Property Documentation

◆ cardinality

- (GPBField_Cardinality) cardinality
readwritenonatomicassign

The field cardinality.

◆ defaultValue

- (NSString*) defaultValue
readwritenonatomiccopy

The string value of the default value of this field. Proto2 syntax only.

◆ jsonName

- (NSString*) jsonName
readwritenonatomiccopy

The field JSON name.

◆ kind

- (GPBField_Kind) kind
readwritenonatomicassign

The field type.

◆ name

- (NSString*) name
readwritenonatomiccopy

The field name.

◆ number

- (int32_t) number
readwritenonatomicassign

The field number.

◆ oneofIndex

- (int32_t) oneofIndex
readwritenonatomicassign

The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

◆ optionsArray

- (NSMutableArray<GPBOption*>*) optionsArray
readwritenonatomicstrong

The protocol buffer options.

◆ optionsArray_Count

- (NSUInteger) optionsArray_Count
readnonatomicassign

The number of items in optionsArray without causing the array to be created.

◆ packed

- (BOOL) packed
readwritenonatomicassign

Whether to use alternative packed wire representation.

◆ typeURL

- (NSString*) typeURL
readwritenonatomiccopy

The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".


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