2015-05-01 12:57:16 +00:00
|
|
|
// Protocol Buffers - Google's data interchange format
|
|
|
|
// Copyright 2008 Google Inc. All rights reserved.
|
|
|
|
// https://developers.google.com/protocol-buffers/
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
// met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
// copyright notice, this list of conditions and the following disclaimer
|
|
|
|
// in the documentation and/or other materials provided with the
|
|
|
|
// distribution.
|
|
|
|
// * Neither the name of Google Inc. nor the names of its
|
|
|
|
// contributors may be used to endorse or promote products derived from
|
|
|
|
// this software without specific prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import "GPBUtilities.h"
|
|
|
|
|
|
|
|
#import "GPBDescriptor_PackagePrivate.h"
|
|
|
|
|
|
|
|
// Macros for stringifying library symbols. These are used in the generated
|
2020-01-20 01:46:35 +00:00
|
|
|
// GPB descriptor classes wherever a library symbol name is represented as a
|
|
|
|
// string.
|
2015-05-01 12:57:16 +00:00
|
|
|
#define GPBStringify(S) #S
|
|
|
|
#define GPBStringifySymbol(S) GPBStringify(S)
|
|
|
|
|
|
|
|
#define GPBNSStringify(S) @#S
|
|
|
|
#define GPBNSStringifySymbol(S) GPBNSStringify(S)
|
|
|
|
|
2020-01-20 01:46:35 +00:00
|
|
|
// Macros for generating a Class from a class name. These are used in
|
|
|
|
// the generated GPB descriptor classes wherever an Objective C class
|
|
|
|
// reference is needed for a generated class.
|
|
|
|
#define GPBObjCClassSymbol(name) OBJC_CLASS_$_##name
|
|
|
|
#define GPBObjCClass(name) \
|
|
|
|
((__bridge Class)&(GPBObjCClassSymbol(name)))
|
|
|
|
#define GPBObjCClassDeclaration(name) \
|
|
|
|
extern const GPBObjcClass_t GPBObjCClassSymbol(name)
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
// Constant to internally mark when there is no has bit.
|
|
|
|
#define GPBNoHasBit INT32_MAX
|
|
|
|
|
|
|
|
CF_EXTERN_C_BEGIN
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
// These two are used to inject a runtime check for version mismatch into the
|
|
|
|
// generated sources to make sure they are linked with a supporting runtime.
|
2016-09-15 17:27:17 +00:00
|
|
|
void GPBCheckRuntimeVersionSupport(int32_t objcRuntimeVersion);
|
|
|
|
GPB_INLINE void GPB_DEBUG_CHECK_RUNTIME_VERSIONS() {
|
|
|
|
// NOTE: By being inline here, this captures the value from the library's
|
|
|
|
// headers at the time the generated code was compiled.
|
|
|
|
#if defined(DEBUG) && DEBUG
|
|
|
|
GPBCheckRuntimeVersionSupport(GOOGLE_PROTOBUF_OBJC_VERSION);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
// Legacy version of the checks, remove when GOOGLE_PROTOBUF_OBJC_GEN_VERSION
|
|
|
|
// goes away (see more info in GPBBootstrap.h).
|
2015-06-08 20:24:57 +00:00
|
|
|
void GPBCheckRuntimeVersionInternal(int32_t version);
|
|
|
|
GPB_INLINE void GPBDebugCheckRuntimeVersion() {
|
2016-05-25 17:46:00 +00:00
|
|
|
#if defined(DEBUG) && DEBUG
|
2015-06-08 20:24:57 +00:00
|
|
|
GPBCheckRuntimeVersionInternal(GOOGLE_PROTOBUF_OBJC_GEN_VERSION);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
// Conversion functions for de/serializing floating point types.
|
|
|
|
|
|
|
|
GPB_INLINE int64_t GPBConvertDoubleToInt64(double v) {
|
2019-09-20 14:52:34 +00:00
|
|
|
GPBInternalCompileAssert(sizeof(double) == sizeof(int64_t), double_not_64_bits);
|
|
|
|
int64_t result;
|
|
|
|
memcpy(&result, &v, sizeof(result));
|
|
|
|
return result;
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GPB_INLINE int32_t GPBConvertFloatToInt32(float v) {
|
2019-09-20 14:52:34 +00:00
|
|
|
GPBInternalCompileAssert(sizeof(float) == sizeof(int32_t), float_not_32_bits);
|
|
|
|
int32_t result;
|
|
|
|
memcpy(&result, &v, sizeof(result));
|
|
|
|
return result;
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GPB_INLINE double GPBConvertInt64ToDouble(int64_t v) {
|
2019-09-20 14:52:34 +00:00
|
|
|
GPBInternalCompileAssert(sizeof(double) == sizeof(int64_t), double_not_64_bits);
|
|
|
|
double result;
|
|
|
|
memcpy(&result, &v, sizeof(result));
|
|
|
|
return result;
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GPB_INLINE float GPBConvertInt32ToFloat(int32_t v) {
|
2019-09-20 14:52:34 +00:00
|
|
|
GPBInternalCompileAssert(sizeof(float) == sizeof(int32_t), float_not_32_bits);
|
|
|
|
float result;
|
|
|
|
memcpy(&result, &v, sizeof(result));
|
|
|
|
return result;
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GPB_INLINE int32_t GPBLogicalRightShift32(int32_t value, int32_t spaces) {
|
|
|
|
return (int32_t)((uint32_t)(value) >> spaces);
|
|
|
|
}
|
|
|
|
|
|
|
|
GPB_INLINE int64_t GPBLogicalRightShift64(int64_t value, int32_t spaces) {
|
|
|
|
return (int64_t)((uint64_t)(value) >> spaces);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Decode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
|
|
|
|
// into values that can be efficiently encoded with varint. (Otherwise,
|
|
|
|
// negative values must be sign-extended to 64 bits to be varint encoded,
|
|
|
|
// thus always taking 10 bytes on the wire.)
|
|
|
|
GPB_INLINE int32_t GPBDecodeZigZag32(uint32_t n) {
|
2016-08-16 15:56:50 +00:00
|
|
|
return (int32_t)(GPBLogicalRightShift32((int32_t)n, 1) ^ -((int32_t)(n) & 1));
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Decode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
|
|
|
|
// into values that can be efficiently encoded with varint. (Otherwise,
|
|
|
|
// negative values must be sign-extended to 64 bits to be varint encoded,
|
|
|
|
// thus always taking 10 bytes on the wire.)
|
|
|
|
GPB_INLINE int64_t GPBDecodeZigZag64(uint64_t n) {
|
2016-08-16 15:56:50 +00:00
|
|
|
return (int64_t)(GPBLogicalRightShift64((int64_t)n, 1) ^ -((int64_t)(n) & 1));
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Encode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
|
|
|
|
// into values that can be efficiently encoded with varint. (Otherwise,
|
|
|
|
// negative values must be sign-extended to 64 bits to be varint encoded,
|
|
|
|
// thus always taking 10 bytes on the wire.)
|
|
|
|
GPB_INLINE uint32_t GPBEncodeZigZag32(int32_t n) {
|
|
|
|
// Note: the right-shift must be arithmetic
|
2018-01-31 16:59:57 +00:00
|
|
|
return ((uint32_t)n << 1) ^ (uint32_t)(n >> 31);
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Encode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
|
|
|
|
// into values that can be efficiently encoded with varint. (Otherwise,
|
|
|
|
// negative values must be sign-extended to 64 bits to be varint encoded,
|
|
|
|
// thus always taking 10 bytes on the wire.)
|
|
|
|
GPB_INLINE uint64_t GPBEncodeZigZag64(int64_t n) {
|
|
|
|
// Note: the right-shift must be arithmetic
|
2018-01-31 16:59:57 +00:00
|
|
|
return ((uint64_t)n << 1) ^ (uint64_t)(n >> 63);
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
2016-05-25 17:46:00 +00:00
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wswitch-enum"
|
|
|
|
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
GPB_INLINE BOOL GPBDataTypeIsObject(GPBDataType type) {
|
2015-05-01 12:57:16 +00:00
|
|
|
switch (type) {
|
2015-06-08 20:24:57 +00:00
|
|
|
case GPBDataTypeBytes:
|
|
|
|
case GPBDataTypeString:
|
|
|
|
case GPBDataTypeMessage:
|
|
|
|
case GPBDataTypeGroup:
|
2015-05-01 12:57:16 +00:00
|
|
|
return YES;
|
|
|
|
default:
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
GPB_INLINE BOOL GPBDataTypeIsMessage(GPBDataType type) {
|
2015-05-01 12:57:16 +00:00
|
|
|
switch (type) {
|
2015-06-08 20:24:57 +00:00
|
|
|
case GPBDataTypeMessage:
|
|
|
|
case GPBDataTypeGroup:
|
2015-05-01 12:57:16 +00:00
|
|
|
return YES;
|
|
|
|
default:
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
GPB_INLINE BOOL GPBFieldDataTypeIsMessage(GPBFieldDescriptor *field) {
|
|
|
|
return GPBDataTypeIsMessage(field->description_->dataType);
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
2015-06-08 20:24:57 +00:00
|
|
|
GPB_INLINE BOOL GPBFieldDataTypeIsObject(GPBFieldDescriptor *field) {
|
|
|
|
return GPBDataTypeIsObject(field->description_->dataType);
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GPB_INLINE BOOL GPBExtensionIsMessage(GPBExtensionDescriptor *ext) {
|
2015-06-08 20:24:57 +00:00
|
|
|
return GPBDataTypeIsMessage(ext->description_->dataType);
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// The field is an array/map or it has an object value.
|
|
|
|
GPB_INLINE BOOL GPBFieldStoresObject(GPBFieldDescriptor *field) {
|
|
|
|
GPBMessageFieldDescription *desc = field->description_;
|
|
|
|
if ((desc->flags & (GPBFieldRepeated | GPBFieldMapKeyMask)) != 0) {
|
|
|
|
return YES;
|
|
|
|
}
|
2015-06-08 20:24:57 +00:00
|
|
|
return GPBDataTypeIsObject(desc->dataType);
|
2015-05-01 12:57:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL GPBGetHasIvar(GPBMessage *self, int32_t index, uint32_t fieldNumber);
|
|
|
|
void GPBSetHasIvar(GPBMessage *self, int32_t idx, uint32_t fieldNumber,
|
|
|
|
BOOL value);
|
|
|
|
uint32_t GPBGetHasOneof(GPBMessage *self, int32_t index);
|
|
|
|
|
|
|
|
GPB_INLINE BOOL
|
|
|
|
GPBGetHasIvarField(GPBMessage *self, GPBFieldDescriptor *field) {
|
|
|
|
GPBMessageFieldDescription *fieldDesc = field->description_;
|
|
|
|
return GPBGetHasIvar(self, fieldDesc->hasIndex, fieldDesc->number);
|
|
|
|
}
|
|
|
|
|
2016-05-25 17:46:00 +00:00
|
|
|
#pragma clang diagnostic pop
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-DEFINE GPB_IVAR_SET_DECL(NAME, TYPE)
|
2020-04-10 19:55:32 +00:00
|
|
|
//%void GPBSet##NAME##IvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
//% NAME$S GPBFieldDescriptor *field,
|
|
|
|
//% NAME$S TYPE value);
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(Bool, BOOL)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetBoolIvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
BOOL value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(Int32, int32_t)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetInt32IvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
int32_t value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(UInt32, uint32_t)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetUInt32IvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
uint32_t value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(Int64, int64_t)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetInt64IvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
int64_t value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(UInt64, uint64_t)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetUInt64IvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
uint64_t value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(Float, float)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetFloatIvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
float value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2015-05-01 12:57:16 +00:00
|
|
|
//%PDDM-EXPAND GPB_IVAR_SET_DECL(Double, double)
|
|
|
|
// This block of code is generated, do not edit it directly.
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format off
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetDoubleIvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
double value);
|
2020-01-20 21:47:20 +00:00
|
|
|
// clang-format on
|
2020-04-10 19:55:32 +00:00
|
|
|
//%PDDM-EXPAND-END (7 expansions)
|
2015-05-01 12:57:16 +00:00
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetEnumIvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
int32_t value);
|
2015-05-01 12:57:16 +00:00
|
|
|
|
|
|
|
id GPBGetObjectIvarWithField(GPBMessage *self, GPBFieldDescriptor *field);
|
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetObjectIvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field, id value);
|
|
|
|
void GPBSetRetainedObjectIvarWithFieldPrivate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
id __attribute__((ns_consumed))
|
|
|
|
value);
|
2015-05-01 12:57:16 +00:00
|
|
|
|
|
|
|
// GPBGetObjectIvarWithField will automatically create the field (message) if
|
|
|
|
// it doesn't exist. GPBGetObjectIvarWithFieldNoAutocreate will return nil.
|
|
|
|
id GPBGetObjectIvarWithFieldNoAutocreate(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field);
|
|
|
|
|
|
|
|
// Clears and releases the autocreated message ivar, if it's autocreated. If
|
|
|
|
// it's not set as autocreated, this method does nothing.
|
|
|
|
void GPBClearAutocreatedMessageIvarWithField(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field);
|
|
|
|
|
|
|
|
// Returns an Objective C encoding for |selector|. |instanceSel| should be
|
|
|
|
// YES if it's an instance selector (as opposed to a class selector).
|
|
|
|
// |selector| must be a selector from MessageSignatureProtocol.
|
|
|
|
const char *GPBMessageEncodingForSelector(SEL selector, BOOL instanceSel);
|
|
|
|
|
|
|
|
// Helper for text format name encoding.
|
2020-08-10 18:08:25 +00:00
|
|
|
// decodeData is the data describing the special decodes.
|
2015-05-01 12:57:16 +00:00
|
|
|
// key and inputString are the input that needs decoding.
|
|
|
|
NSString *GPBDecodeTextFormatName(const uint8_t *decodeData, int32_t key,
|
|
|
|
NSString *inputString);
|
|
|
|
|
2020-04-10 19:55:32 +00:00
|
|
|
|
2020-04-13 14:49:16 +00:00
|
|
|
// Shims from the older generated code into the runtime.
|
2020-04-10 19:55:32 +00:00
|
|
|
void GPBSetInt32IvarWithFieldInternal(GPBMessage *self,
|
|
|
|
GPBFieldDescriptor *field,
|
|
|
|
int32_t value,
|
|
|
|
GPBFileSyntax syntax);
|
2020-04-13 14:49:16 +00:00
|
|
|
void GPBMaybeClearOneof(GPBMessage *self, GPBOneofDescriptor *oneof,
|
|
|
|
int32_t oneofHasIndex, uint32_t fieldNumberNotToClear);
|
2020-04-10 19:55:32 +00:00
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
// A series of selectors that are used solely to get @encoding values
|
|
|
|
// for them by the dynamic protobuf runtime code. See
|
2017-11-14 23:16:04 +00:00
|
|
|
// GPBMessageEncodingForSelector for details. GPBRootObject conforms to
|
|
|
|
// the protocol so that it is encoded in the Objective C runtime.
|
2015-05-01 12:57:16 +00:00
|
|
|
@protocol GPBMessageSignatureProtocol
|
|
|
|
@optional
|
|
|
|
|
|
|
|
#define GPB_MESSAGE_SIGNATURE_ENTRY(TYPE, NAME) \
|
|
|
|
-(TYPE)get##NAME; \
|
|
|
|
-(void)set##NAME : (TYPE)value; \
|
|
|
|
-(TYPE)get##NAME##AtIndex : (NSUInteger)index;
|
|
|
|
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(BOOL, Bool)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(uint32_t, Fixed32)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int32_t, SFixed32)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(float, Float)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(uint64_t, Fixed64)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int64_t, SFixed64)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(double, Double)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int32_t, Int32)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int64_t, Int64)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int32_t, SInt32)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int64_t, SInt64)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(uint32_t, UInt32)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(uint64_t, UInt64)
|
2015-06-08 20:24:57 +00:00
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(NSData *, Bytes)
|
2015-05-01 12:57:16 +00:00
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(NSString *, String)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(GPBMessage *, Message)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(GPBMessage *, Group)
|
|
|
|
GPB_MESSAGE_SIGNATURE_ENTRY(int32_t, Enum)
|
|
|
|
|
|
|
|
#undef GPB_MESSAGE_SIGNATURE_ENTRY
|
|
|
|
|
|
|
|
- (id)getArray;
|
2015-06-08 20:24:57 +00:00
|
|
|
- (NSUInteger)getArrayCount;
|
2015-05-01 12:57:16 +00:00
|
|
|
- (void)setArray:(NSArray *)array;
|
|
|
|
+ (id)getClassValue;
|
|
|
|
@end
|
|
|
|
|
2017-03-02 19:50:10 +00:00
|
|
|
BOOL GPBClassHasSel(Class aClass, SEL sel);
|
|
|
|
|
2015-05-01 12:57:16 +00:00
|
|
|
CF_EXTERN_C_END
|