31 #import <Foundation/Foundation.h>
35 NS_ASSUME_NONNULL_BEGIN
52 @property(nonatomic, readonly) NSUInteger
count;
57 + (instancetype)
array;
66 + (instancetype)arrayWithValue:(
int32_t)value;
85 + (instancetype)arrayWithCapacity:(NSUInteger)count;
100 - (instancetype)initWithValues:(
const int32_t [__nullable])values
101 count:(NSUInteger)count;
119 - (instancetype)initWithCapacity:(NSUInteger)count;
128 - (
int32_t)valueAtIndex:(NSUInteger)index;
149 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
157 - (void)addValue:(
int32_t)value;
165 - (void)addValues:(
const int32_t [__nullable])values count:(NSUInteger)count;
180 - (void)insertValue:(
int32_t)value atIndex:(NSUInteger)index;
188 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
int32_t)value;
195 - (void)removeValueAtIndex:(NSUInteger)index;
208 - (void)exchangeValueAtIndex:(NSUInteger)idx1
209 withValueAtIndex:(NSUInteger)idx2;
213 #pragma mark - UInt32
224 @property(nonatomic, readonly) NSUInteger
count;
229 + (instancetype)
array;
238 + (instancetype)arrayWithValue:(
uint32_t)value;
257 + (instancetype)arrayWithCapacity:(NSUInteger)count;
272 - (instancetype)initWithValues:(
const uint32_t [__nullable])values
273 count:(NSUInteger)count;
291 - (instancetype)initWithCapacity:(NSUInteger)count;
300 - (
uint32_t)valueAtIndex:(NSUInteger)index;
321 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
337 - (void)addValues:(
const uint32_t [__nullable])values count:(NSUInteger)count;
352 - (void)insertValue:(
uint32_t)value atIndex:(NSUInteger)index;
360 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
uint32_t)value;
367 - (void)removeValueAtIndex:(NSUInteger)index;
380 - (void)exchangeValueAtIndex:(NSUInteger)idx1
381 withValueAtIndex:(NSUInteger)idx2;
396 @property(nonatomic, readonly) NSUInteger
count;
401 + (instancetype)
array;
410 + (instancetype)arrayWithValue:(
int64_t)value;
429 + (instancetype)arrayWithCapacity:(NSUInteger)count;
444 - (instancetype)initWithValues:(
const int64_t [__nullable])values
445 count:(NSUInteger)count;
463 - (instancetype)initWithCapacity:(NSUInteger)count;
472 - (
int64_t)valueAtIndex:(NSUInteger)index;
493 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
501 - (void)addValue:(
int64_t)value;
509 - (void)addValues:(
const int64_t [__nullable])values count:(NSUInteger)count;
524 - (void)insertValue:(
int64_t)value atIndex:(NSUInteger)index;
532 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
int64_t)value;
539 - (void)removeValueAtIndex:(NSUInteger)index;
552 - (void)exchangeValueAtIndex:(NSUInteger)idx1
553 withValueAtIndex:(NSUInteger)idx2;
557 #pragma mark - UInt64
568 @property(nonatomic, readonly) NSUInteger
count;
573 + (instancetype)
array;
582 + (instancetype)arrayWithValue:(
uint64_t)value;
601 + (instancetype)arrayWithCapacity:(NSUInteger)count;
616 - (instancetype)initWithValues:(
const uint64_t [__nullable])values
617 count:(NSUInteger)count;
635 - (instancetype)initWithCapacity:(NSUInteger)count;
644 - (
uint64_t)valueAtIndex:(NSUInteger)index;
665 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
681 - (void)addValues:(
const uint64_t [__nullable])values count:(NSUInteger)count;
696 - (void)insertValue:(
uint64_t)value atIndex:(NSUInteger)index;
704 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
uint64_t)value;
711 - (void)removeValueAtIndex:(NSUInteger)index;
724 - (void)exchangeValueAtIndex:(NSUInteger)idx1
725 withValueAtIndex:(NSUInteger)idx2;
740 @property(nonatomic, readonly) NSUInteger
count;
745 + (instancetype)
array;
754 + (instancetype)arrayWithValue:(
float)value;
773 + (instancetype)arrayWithCapacity:(NSUInteger)count;
788 - (instancetype)initWithValues:(
const float [__nullable])values
789 count:(NSUInteger)count;
807 - (instancetype)initWithCapacity:(NSUInteger)count;
816 - (float)valueAtIndex:(NSUInteger)index;
826 - (void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(
float value, NSUInteger
idx,
BOOL *
stop))block;
837 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
838 usingBlock:(
void (NS_NOESCAPE ^)(
float value, NSUInteger
idx,
BOOL *
stop))block;
845 - (void)addValue:(
float)value;
853 - (void)addValues:(
const float [__nullable])values count:(NSUInteger)count;
868 - (void)insertValue:(
float)value atIndex:(NSUInteger)index;
876 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
float)value;
883 - (void)removeValueAtIndex:(NSUInteger)index;
896 - (void)exchangeValueAtIndex:(NSUInteger)idx1
897 withValueAtIndex:(NSUInteger)idx2;
901 #pragma mark - Double
912 @property(nonatomic, readonly) NSUInteger
count;
917 + (instancetype)
array;
926 + (instancetype)arrayWithValue:(
double)value;
945 + (instancetype)arrayWithCapacity:(NSUInteger)count;
960 - (instancetype)initWithValues:(
const double [__nullable])values
961 count:(NSUInteger)count;
979 - (instancetype)initWithCapacity:(NSUInteger)count;
988 - (double)valueAtIndex:(NSUInteger)index;
998 - (void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(
double value, NSUInteger
idx,
BOOL *
stop))block;
1009 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
1010 usingBlock:(
void (NS_NOESCAPE ^)(
double value, NSUInteger
idx,
BOOL *
stop))block;
1017 - (void)addValue:(
double)value;
1025 - (void)addValues:(
const double [__nullable])values count:(NSUInteger)count;
1040 - (void)insertValue:(
double)value atIndex:(NSUInteger)index;
1048 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
double)value;
1055 - (void)removeValueAtIndex:(NSUInteger)index;
1068 - (void)exchangeValueAtIndex:(NSUInteger)idx1
1069 withValueAtIndex:(NSUInteger)idx2;
1084 @property(nonatomic, readonly) NSUInteger
count;
1089 + (instancetype)
array;
1098 + (instancetype)arrayWithValue:(
BOOL)value;
1108 + (instancetype)arrayWithValueArray:(
GPBBoolArray *)array;
1117 + (instancetype)arrayWithCapacity:(NSUInteger)count;
1132 - (instancetype)initWithValues:(
const BOOL [__nullable])values
1133 count:(NSUInteger)count;
1142 - (instancetype)initWithValueArray:(
GPBBoolArray *)array;
1151 - (instancetype)initWithCapacity:(NSUInteger)count;
1160 - (
BOOL)valueAtIndex:(NSUInteger)index;
1170 - (void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(
BOOL value, NSUInteger
idx,
BOOL *
stop))block;
1181 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
1189 - (void)addValue:(
BOOL)value;
1197 - (void)addValues:(
const BOOL [__nullable])values count:(NSUInteger)count;
1212 - (void)insertValue:(
BOOL)value atIndex:(NSUInteger)index;
1220 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
BOOL)value;
1227 - (void)removeValueAtIndex:(NSUInteger)index;
1240 - (void)exchangeValueAtIndex:(NSUInteger)idx1
1241 withValueAtIndex:(NSUInteger)idx2;
1256 @property(nonatomic, readonly) NSUInteger
count;
1263 + (instancetype)
array;
1295 + (instancetype)arrayWithValueArray:(
GPBEnumArray *)array;
1307 capacity:(NSUInteger)count;
1317 NS_DESIGNATED_INITIALIZER;
1330 count:(NSUInteger)count;
1339 - (instancetype)initWithValueArray:(
GPBEnumArray *)array;
1350 capacity:(NSUInteger)count;
1363 - (
int32_t)valueAtIndex:(NSUInteger)index;
1384 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
1397 - (
int32_t)rawValueAtIndex:(NSUInteger)index;
1418 - (void)enumerateRawValuesWithOptions:(NSEnumerationOptions)opts
1431 - (void)addValue:(
int32_t)value;
1439 - (void)addValues:(
const int32_t [__nullable])values count:(NSUInteger)count;
1448 - (void)insertValue:(
int32_t)value atIndex:(NSUInteger)index;
1456 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
int32_t)value;
1469 - (void)addRawValue:(
int32_t)value;
1490 - (void)addRawValues:(
const int32_t [__nullable])values count:(NSUInteger)count;
1501 - (void)insertRawValue:(
int32_t)value atIndex:(NSUInteger)index;
1512 - (void)replaceValueAtIndex:(NSUInteger)index withRawValue:(
int32_t)value;
1521 - (void)removeValueAtIndex:(NSUInteger)index;
1534 - (void)exchangeValueAtIndex:(NSUInteger)idx1
1535 withValueAtIndex:(NSUInteger)idx2;
1542 NS_ASSUME_NONNULL_END