OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/struct.proto | 2 // source: google/protobuf/struct.proto |
3 | 3 |
4 #import "GPBProtocolBuffers.h" | 4 // This CPP symbol can be defined to use imports that match up to the framework |
| 5 // imports needed when using CocoaPods. |
| 6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) |
| 7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0 |
| 8 #endif |
5 | 9 |
6 #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001 | 10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS |
7 #error This file was generated by a different version of protoc which is incompa
tible with your Protocol Buffer library sources. | 11 #import <Protobuf/GPBProtocolBuffers.h> |
| 12 #else |
| 13 #import "GPBProtocolBuffers.h" |
| 14 #endif |
| 15 |
| 16 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002 |
| 17 #error This file was generated by a newer version of protoc which is incompatibl
e with your Protocol Buffer library sources. |
| 18 #endif |
| 19 #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION |
| 20 #error This file was generated by an older version of protoc which is incompatib
le with your Protocol Buffer library sources. |
8 #endif | 21 #endif |
9 | 22 |
10 // @@protoc_insertion_point(imports) | 23 // @@protoc_insertion_point(imports) |
11 | 24 |
12 #pragma clang diagnostic push | 25 #pragma clang diagnostic push |
13 #pragma clang diagnostic ignored "-Wdeprecated-declarations" | 26 #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
14 | 27 |
15 CF_EXTERN_C_BEGIN | 28 CF_EXTERN_C_BEGIN |
16 | 29 |
17 @class GPBListValue; | 30 @class GPBListValue; |
18 @class GPBStruct; | 31 @class GPBStruct; |
19 @class GPBValue; | 32 @class GPBValue; |
20 | 33 |
21 NS_ASSUME_NONNULL_BEGIN | 34 NS_ASSUME_NONNULL_BEGIN |
22 | 35 |
23 #pragma mark - Enum GPBNullValue | 36 #pragma mark - Enum GPBNullValue |
24 | 37 |
25 /// `NullValue` is a singleton enumeration to represent the null value for the | 38 /** |
26 /// `Value` type union. | 39 * `NullValue` is a singleton enumeration to represent the null value for the |
27 /// | 40 * `Value` type union. |
28 /// The JSON representation for `NullValue` is JSON `null`. | 41 * |
| 42 * The JSON representation for `NullValue` is JSON `null`. |
| 43 **/ |
29 typedef GPB_ENUM(GPBNullValue) { | 44 typedef GPB_ENUM(GPBNullValue) { |
30 /// Value used if any message's field encounters a value that is not defined | 45 /** |
31 /// by this enum. The message will also have C functions to get/set the rawVal
ue | 46 * Value used if any message's field encounters a value that is not defined |
32 /// of the field. | 47 * by this enum. The message will also have C functions to get/set the rawValu
e |
| 48 * of the field. |
| 49 **/ |
33 GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, | 50 GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, |
34 /// Null value. | 51 /** Null value. */ |
35 GPBNullValue_NullValue = 0, | 52 GPBNullValue_NullValue = 0, |
36 }; | 53 }; |
37 | 54 |
38 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void); | 55 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void); |
39 | 56 |
40 /// Checks to see if the given value is defined by the enum or was not known at | 57 /** |
41 /// the time this source was generated. | 58 * Checks to see if the given value is defined by the enum or was not known at |
| 59 * the time this source was generated. |
| 60 **/ |
42 BOOL GPBNullValue_IsValidValue(int32_t value); | 61 BOOL GPBNullValue_IsValidValue(int32_t value); |
43 | 62 |
44 #pragma mark - GPBStructRoot | 63 #pragma mark - GPBStructRoot |
45 | 64 |
46 /// Exposes the extension registry for this file. | 65 /** |
47 /// | 66 * Exposes the extension registry for this file. |
48 /// The base class provides: | 67 * |
49 /// @code | 68 * The base class provides: |
50 /// + (GPBExtensionRegistry *)extensionRegistry; | 69 * @code |
51 /// @endcode | 70 * + (GPBExtensionRegistry *)extensionRegistry; |
52 /// which is a @c GPBExtensionRegistry that includes all the extensions defined
by | 71 * @endcode |
53 /// this file and all files that it depends on. | 72 * which is a @c GPBExtensionRegistry that includes all the extensions defined b
y |
| 73 * this file and all files that it depends on. |
| 74 **/ |
54 @interface GPBStructRoot : GPBRootObject | 75 @interface GPBStructRoot : GPBRootObject |
55 @end | 76 @end |
56 | 77 |
57 #pragma mark - GPBStruct | 78 #pragma mark - GPBStruct |
58 | 79 |
59 typedef GPB_ENUM(GPBStruct_FieldNumber) { | 80 typedef GPB_ENUM(GPBStruct_FieldNumber) { |
60 GPBStruct_FieldNumber_Fields = 1, | 81 GPBStruct_FieldNumber_Fields = 1, |
61 }; | 82 }; |
62 | 83 |
63 /// `Struct` represents a structured data value, consisting of fields | 84 /** |
64 /// which map to dynamically typed values. In some languages, `Struct` | 85 * `Struct` represents a structured data value, consisting of fields |
65 /// might be supported by a native representation. For example, in | 86 * which map to dynamically typed values. In some languages, `Struct` |
66 /// scripting languages like JS a struct is represented as an | 87 * might be supported by a native representation. For example, in |
67 /// object. The details of that representation are described together | 88 * scripting languages like JS a struct is represented as an |
68 /// with the proto support for the language. | 89 * object. The details of that representation are described together |
69 /// | 90 * with the proto support for the language. |
70 /// The JSON representation for `Struct` is JSON object. | 91 * |
| 92 * The JSON representation for `Struct` is JSON object. |
| 93 **/ |
71 @interface GPBStruct : GPBMessage | 94 @interface GPBStruct : GPBMessage |
72 | 95 |
73 /// Unordered map of dynamically typed values. | 96 /** Unordered map of dynamically typed values. */ |
74 @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSS
tring*, GPBValue*> *fields; | 97 @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSS
tring*, GPBValue*> *fields; |
75 /// The number of items in @c fields without causing the array to be created. | 98 /** The number of items in @c fields without causing the array to be created. */ |
76 @property(nonatomic, readonly) NSUInteger fields_Count; | 99 @property(nonatomic, readonly) NSUInteger fields_Count; |
77 | 100 |
78 @end | 101 @end |
79 | 102 |
80 #pragma mark - GPBValue | 103 #pragma mark - GPBValue |
81 | 104 |
82 typedef GPB_ENUM(GPBValue_FieldNumber) { | 105 typedef GPB_ENUM(GPBValue_FieldNumber) { |
83 GPBValue_FieldNumber_NullValue = 1, | 106 GPBValue_FieldNumber_NullValue = 1, |
84 GPBValue_FieldNumber_NumberValue = 2, | 107 GPBValue_FieldNumber_NumberValue = 2, |
85 GPBValue_FieldNumber_StringValue = 3, | 108 GPBValue_FieldNumber_StringValue = 3, |
86 GPBValue_FieldNumber_BoolValue = 4, | 109 GPBValue_FieldNumber_BoolValue = 4, |
87 GPBValue_FieldNumber_StructValue = 5, | 110 GPBValue_FieldNumber_StructValue = 5, |
88 GPBValue_FieldNumber_ListValue = 6, | 111 GPBValue_FieldNumber_ListValue = 6, |
89 }; | 112 }; |
90 | 113 |
91 typedef GPB_ENUM(GPBValue_Kind_OneOfCase) { | 114 typedef GPB_ENUM(GPBValue_Kind_OneOfCase) { |
92 GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0, | 115 GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0, |
93 GPBValue_Kind_OneOfCase_NullValue = 1, | 116 GPBValue_Kind_OneOfCase_NullValue = 1, |
94 GPBValue_Kind_OneOfCase_NumberValue = 2, | 117 GPBValue_Kind_OneOfCase_NumberValue = 2, |
95 GPBValue_Kind_OneOfCase_StringValue = 3, | 118 GPBValue_Kind_OneOfCase_StringValue = 3, |
96 GPBValue_Kind_OneOfCase_BoolValue = 4, | 119 GPBValue_Kind_OneOfCase_BoolValue = 4, |
97 GPBValue_Kind_OneOfCase_StructValue = 5, | 120 GPBValue_Kind_OneOfCase_StructValue = 5, |
98 GPBValue_Kind_OneOfCase_ListValue = 6, | 121 GPBValue_Kind_OneOfCase_ListValue = 6, |
99 }; | 122 }; |
100 | 123 |
101 /// `Value` represents a dynamically typed value which can be either | 124 /** |
102 /// null, a number, a string, a boolean, a recursive struct value, or a | 125 * `Value` represents a dynamically typed value which can be either |
103 /// list of values. A producer of value is expected to set one of that | 126 * null, a number, a string, a boolean, a recursive struct value, or a |
104 /// variants, absence of any variant indicates an error. | 127 * list of values. A producer of value is expected to set one of that |
105 /// | 128 * variants, absence of any variant indicates an error. |
106 /// The JSON representation for `Value` is JSON value. | 129 * |
| 130 * The JSON representation for `Value` is JSON value. |
| 131 **/ |
107 @interface GPBValue : GPBMessage | 132 @interface GPBValue : GPBMessage |
108 | 133 |
109 /// The kind of value. | 134 /** The kind of value. */ |
110 @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase; | 135 @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase; |
111 | 136 |
112 /// Represents a null value. | 137 /** Represents a null value. */ |
113 @property(nonatomic, readwrite) GPBNullValue nullValue; | 138 @property(nonatomic, readwrite) GPBNullValue nullValue; |
114 | 139 |
115 /// Represents a double value. | 140 /** Represents a double value. */ |
116 @property(nonatomic, readwrite) double numberValue; | 141 @property(nonatomic, readwrite) double numberValue; |
117 | 142 |
118 /// Represents a string value. | 143 /** Represents a string value. */ |
119 @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue; | 144 @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue; |
120 | 145 |
121 /// Represents a boolean value. | 146 /** Represents a boolean value. */ |
122 @property(nonatomic, readwrite) BOOL boolValue; | 147 @property(nonatomic, readwrite) BOOL boolValue; |
123 | 148 |
124 /// Represents a structured value. | 149 /** Represents a structured value. */ |
125 @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue; | 150 @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue; |
126 | 151 |
127 /// Represents a repeated `Value`. | 152 /** Represents a repeated `Value`. */ |
128 @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue
; | 153 @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue
; |
129 | 154 |
130 @end | 155 @end |
131 | 156 |
132 /// Fetches the raw value of a @c GPBValue's @c nullValue property, even | 157 /** |
133 /// if the value was not defined by the enum at the time the code was generated. | 158 * Fetches the raw value of a @c GPBValue's @c nullValue property, even |
| 159 * if the value was not defined by the enum at the time the code was generated. |
| 160 **/ |
134 int32_t GPBValue_NullValue_RawValue(GPBValue *message); | 161 int32_t GPBValue_NullValue_RawValue(GPBValue *message); |
135 /// Sets the raw value of an @c GPBValue's @c nullValue property, allowing | 162 /** |
136 /// it to be set to a value that was not defined by the enum at the time the cod
e | 163 * Sets the raw value of an @c GPBValue's @c nullValue property, allowing |
137 /// was generated. | 164 * it to be set to a value that was not defined by the enum at the time the code |
| 165 * was generated. |
| 166 **/ |
138 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value); | 167 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value); |
139 | 168 |
140 /// Clears whatever value was set for the oneof 'kind'. | 169 /** |
| 170 * Clears whatever value was set for the oneof 'kind'. |
| 171 **/ |
141 void GPBValue_ClearKindOneOfCase(GPBValue *message); | 172 void GPBValue_ClearKindOneOfCase(GPBValue *message); |
142 | 173 |
143 #pragma mark - GPBListValue | 174 #pragma mark - GPBListValue |
144 | 175 |
145 typedef GPB_ENUM(GPBListValue_FieldNumber) { | 176 typedef GPB_ENUM(GPBListValue_FieldNumber) { |
146 GPBListValue_FieldNumber_ValuesArray = 1, | 177 GPBListValue_FieldNumber_ValuesArray = 1, |
147 }; | 178 }; |
148 | 179 |
149 /// `ListValue` is a wrapper around a repeated field of values. | 180 /** |
150 /// | 181 * `ListValue` is a wrapper around a repeated field of values. |
151 /// The JSON representation for `ListValue` is JSON array. | 182 * |
| 183 * The JSON representation for `ListValue` is JSON array. |
| 184 **/ |
152 @interface GPBListValue : GPBMessage | 185 @interface GPBListValue : GPBMessage |
153 | 186 |
154 /// Repeated field of dynamically typed values. | 187 /** Repeated field of dynamically typed values. */ |
155 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBValue
*> *valuesArray; | 188 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBValue
*> *valuesArray; |
156 /// The number of items in @c valuesArray without causing the array to be create
d. | 189 /** The number of items in @c valuesArray without causing the array to be create
d. */ |
157 @property(nonatomic, readonly) NSUInteger valuesArray_Count; | 190 @property(nonatomic, readonly) NSUInteger valuesArray_Count; |
158 | 191 |
159 @end | 192 @end |
160 | 193 |
161 NS_ASSUME_NONNULL_END | 194 NS_ASSUME_NONNULL_END |
162 | 195 |
163 CF_EXTERN_C_END | 196 CF_EXTERN_C_END |
164 | 197 |
165 #pragma clang diagnostic pop | 198 #pragma clang diagnostic pop |
166 | 199 |
167 // @@protoc_insertion_point(global_scope) | 200 // @@protoc_insertion_point(global_scope) |
OLD | NEW |