protobuf
objectivec
GPBRuntimeTypes.h
Go to the documentation of this file.
1
// Protocol Buffers - Google's data interchange format
2
// Copyright 2008 Google Inc. All rights reserved.
3
// https://developers.google.com/protocol-buffers/
4
//
5
// Redistribution and use in source and binary forms, with or without
6
// modification, are permitted provided that the following conditions are
7
// met:
8
//
9
// * Redistributions of source code must retain the above copyright
10
// notice, this list of conditions and the following disclaimer.
11
// * Redistributions in binary form must reproduce the above
12
// copyright notice, this list of conditions and the following disclaimer
13
// in the documentation and/or other materials provided with the
14
// distribution.
15
// * Neither the name of Google Inc. nor the names of its
16
// contributors may be used to endorse or promote products derived from
17
// this software without specific prior written permission.
18
//
19
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31
#import <Foundation/Foundation.h>
32
33
#import "
GPBBootstrap.h
"
34
35
@class
GPBEnumDescriptor
;
36
@class
GPBMessage
;
37
@class
GPBInt32Array
;
38
42
typedef
BOOL (*
GPBEnumValidationFunc
)(int32_t);
43
47
typedef
GPBEnumDescriptor
*(*GPBEnumDescriptorFunc)(
void
);
48
53
enum
{
54
kGPBUnrecognizedEnumeratorValue
= (int32_t)0xFBADBEEF,
55
};
56
61
typedef
union
{
62
BOOL
valueBool
;
63
int32_t
valueInt32
;
64
int64_t
valueInt64
;
65
uint32_t
valueUInt32
;
66
uint64_t
valueUInt64
;
67
float
valueFloat
;
68
double
valueDouble
;
69
GPB_UNSAFE_UNRETAINED
NSData *
valueData
;
70
GPB_UNSAFE_UNRETAINED
NSString *
valueString
;
71
GPB_UNSAFE_UNRETAINED
GPBMessage
*
valueMessage
;
72
int32_t
valueEnum
;
73
}
GPBGenericValue
;
74
82
typedef
NS_ENUM
(uint8_t, GPBDataType) {
84
GPBDataTypeBool = 0,
86
GPBDataTypeFixed32,
88
GPBDataTypeSFixed32,
90
GPBDataTypeFloat,
92
GPBDataTypeFixed64,
94
GPBDataTypeSFixed64,
96
GPBDataTypeDouble,
102
GPBDataTypeInt32,
108
GPBDataTypeInt64,
110
GPBDataTypeSInt32,
112
GPBDataTypeSInt64,
114
GPBDataTypeUInt32,
116
GPBDataTypeUInt64,
118
GPBDataTypeBytes,
120
GPBDataTypeString,
122
GPBDataTypeMessage,
124
GPBDataTypeGroup,
126
GPBDataTypeEnum,
127
};
128
129
enum
{
135
GPBDataType_Count
= GPBDataTypeEnum + 1
136
};
137
139
typedef
struct
GPBExtensionRange
{
141
uint32_t
start
;
143
uint32_t
end
;
144
}
GPBExtensionRange
;
GPBExtensionRange
struct GPBExtensionRange GPBExtensionRange
GPBGenericValue::valueData
GPB_UNSAFE_UNRETAINED NSData * valueData
Definition:
GPBRuntimeTypes.h:69
GPBExtensionRange::end
uint32_t end
Definition:
GPBRuntimeTypes.h:143
GPB_UNSAFE_UNRETAINED
#define GPB_UNSAFE_UNRETAINED
Definition:
GPBBootstrap.h:90
NS_ENUM
typedef NS_ENUM(uint8_t, GPBDataType)
Definition:
GPBRuntimeTypes.h:82
GPBExtensionRange::start
uint32_t start
Definition:
GPBRuntimeTypes.h:141
GPBEnumValidationFunc
BOOL(* GPBEnumValidationFunc)(int32_t)
Definition:
GPBRuntimeTypes.h:42
GPBGenericValue::valueDouble
double valueDouble
Definition:
GPBRuntimeTypes.h:68
GPBGenericValue::valueBool
BOOL valueBool
Definition:
GPBRuntimeTypes.h:62
GPBGenericValue::valueString
GPB_UNSAFE_UNRETAINED NSString * valueString
Definition:
GPBRuntimeTypes.h:70
GPBDataType_Count
@ GPBDataType_Count
Definition:
GPBRuntimeTypes.h:135
GPBExtensionRange
Definition:
GPBRuntimeTypes.h:139
GPBBootstrap.h
void
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
GPBGenericValue::valueEnum
int32_t valueEnum
Definition:
GPBRuntimeTypes.h:72
GPBGenericValue::valueMessage
GPB_UNSAFE_UNRETAINED GPBMessage * valueMessage
Definition:
GPBRuntimeTypes.h:71
GPBGenericValue::valueUInt64
uint64_t valueUInt64
Definition:
GPBRuntimeTypes.h:66
GPBMessage
Definition:
GPBMessage.h:83
GPBGenericValue::valueUInt32
uint32_t valueUInt32
Definition:
GPBRuntimeTypes.h:65
GPBGenericValue::valueInt32
int32_t valueInt32
Definition:
GPBRuntimeTypes.h:63
kGPBUnrecognizedEnumeratorValue
@ kGPBUnrecognizedEnumeratorValue
Definition:
GPBRuntimeTypes.h:54
GPBGenericValue::valueInt64
int64_t valueInt64
Definition:
GPBRuntimeTypes.h:64
GPBInt32Array
Definition:
GPBArray.h:48
GPBGenericValue
Definition:
GPBRuntimeTypes.h:61
GPBEnumDescriptor
Definition:
GPBDescriptor.h:216
GPBGenericValue::valueFloat
float valueFloat
Definition:
GPBRuntimeTypes.h:67
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:53