Explicitly convert an enum to an int (#19537)
[google-protobuf.git] / objectivec / GPBWrappers.pbobjc.h
blob49857769eb60f8c412c2d384722e40b522ec78d0
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
3 // clang-format off
4 // source: google/protobuf/wrappers.proto
6 #import "GPBDescriptor.h"
7 #import "GPBMessage.h"
8 #import "GPBRootObject.h"
10 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
11 #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
12 #endif
13 #if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
14 #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
15 #endif
17 // @@protoc_insertion_point(imports)
19 #pragma clang diagnostic push
20 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
22 CF_EXTERN_C_BEGIN
24 NS_ASSUME_NONNULL_BEGIN
26 #pragma mark - GPBWrappersRoot
28 /**
29 * Exposes the extension registry for this file.
31 * The base class provides:
32 * @code
33 * + (GPBExtensionRegistry *)extensionRegistry;
34 * @endcode
35 * which is a @c GPBExtensionRegistry that includes all the extensions defined by
36 * this file and all files that it depends on.
37 **/
38 GPB_FINAL @interface GPBWrappersRoot : GPBRootObject
39 @end
41 #pragma mark - GPBDoubleValue
43 typedef GPB_ENUM(GPBDoubleValue_FieldNumber) {
44 GPBDoubleValue_FieldNumber_Value = 1,
47 /**
48 * Wrapper message for `double`.
50 * The JSON representation for `DoubleValue` is JSON number.
52 * Not recommended for use in new APIs, but still useful for legacy APIs and
53 * has no plan to be removed.
54 **/
55 GPB_FINAL @interface GPBDoubleValue : GPBMessage
57 /** The double value. */
58 @property(nonatomic, readwrite) double value;
60 @end
62 #pragma mark - GPBFloatValue
64 typedef GPB_ENUM(GPBFloatValue_FieldNumber) {
65 GPBFloatValue_FieldNumber_Value = 1,
68 /**
69 * Wrapper message for `float`.
71 * The JSON representation for `FloatValue` is JSON number.
73 * Not recommended for use in new APIs, but still useful for legacy APIs and
74 * has no plan to be removed.
75 **/
76 GPB_FINAL @interface GPBFloatValue : GPBMessage
78 /** The float value. */
79 @property(nonatomic, readwrite) float value;
81 @end
83 #pragma mark - GPBInt64Value
85 typedef GPB_ENUM(GPBInt64Value_FieldNumber) {
86 GPBInt64Value_FieldNumber_Value = 1,
89 /**
90 * Wrapper message for `int64`.
92 * The JSON representation for `Int64Value` is JSON string.
94 * Not recommended for use in new APIs, but still useful for legacy APIs and
95 * has no plan to be removed.
96 **/
97 GPB_FINAL @interface GPBInt64Value : GPBMessage
99 /** The int64 value. */
100 @property(nonatomic, readwrite) int64_t value;
102 @end
104 #pragma mark - GPBUInt64Value
106 typedef GPB_ENUM(GPBUInt64Value_FieldNumber) {
107 GPBUInt64Value_FieldNumber_Value = 1,
111 * Wrapper message for `uint64`.
113 * The JSON representation for `UInt64Value` is JSON string.
115 * Not recommended for use in new APIs, but still useful for legacy APIs and
116 * has no plan to be removed.
118 GPB_FINAL @interface GPBUInt64Value : GPBMessage
120 /** The uint64 value. */
121 @property(nonatomic, readwrite) uint64_t value;
123 @end
125 #pragma mark - GPBInt32Value
127 typedef GPB_ENUM(GPBInt32Value_FieldNumber) {
128 GPBInt32Value_FieldNumber_Value = 1,
132 * Wrapper message for `int32`.
134 * The JSON representation for `Int32Value` is JSON number.
136 * Not recommended for use in new APIs, but still useful for legacy APIs and
137 * has no plan to be removed.
139 GPB_FINAL @interface GPBInt32Value : GPBMessage
141 /** The int32 value. */
142 @property(nonatomic, readwrite) int32_t value;
144 @end
146 #pragma mark - GPBUInt32Value
148 typedef GPB_ENUM(GPBUInt32Value_FieldNumber) {
149 GPBUInt32Value_FieldNumber_Value = 1,
153 * Wrapper message for `uint32`.
155 * The JSON representation for `UInt32Value` is JSON number.
157 * Not recommended for use in new APIs, but still useful for legacy APIs and
158 * has no plan to be removed.
160 GPB_FINAL @interface GPBUInt32Value : GPBMessage
162 /** The uint32 value. */
163 @property(nonatomic, readwrite) uint32_t value;
165 @end
167 #pragma mark - GPBBoolValue
169 typedef GPB_ENUM(GPBBoolValue_FieldNumber) {
170 GPBBoolValue_FieldNumber_Value = 1,
174 * Wrapper message for `bool`.
176 * The JSON representation for `BoolValue` is JSON `true` and `false`.
178 * Not recommended for use in new APIs, but still useful for legacy APIs and
179 * has no plan to be removed.
181 GPB_FINAL @interface GPBBoolValue : GPBMessage
183 /** The bool value. */
184 @property(nonatomic, readwrite) BOOL value;
186 @end
188 #pragma mark - GPBStringValue
190 typedef GPB_ENUM(GPBStringValue_FieldNumber) {
191 GPBStringValue_FieldNumber_Value = 1,
195 * Wrapper message for `string`.
197 * The JSON representation for `StringValue` is JSON string.
199 * Not recommended for use in new APIs, but still useful for legacy APIs and
200 * has no plan to be removed.
202 GPB_FINAL @interface GPBStringValue : GPBMessage
204 /** The string value. */
205 @property(nonatomic, readwrite, copy, null_resettable) NSString *value;
207 @end
209 #pragma mark - GPBBytesValue
211 typedef GPB_ENUM(GPBBytesValue_FieldNumber) {
212 GPBBytesValue_FieldNumber_Value = 1,
216 * Wrapper message for `bytes`.
218 * The JSON representation for `BytesValue` is JSON string.
220 * Not recommended for use in new APIs, but still useful for legacy APIs and
221 * has no plan to be removed.
223 GPB_FINAL @interface GPBBytesValue : GPBMessage
225 /** The bytes value. */
226 @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
228 @end
230 NS_ASSUME_NONNULL_END
232 CF_EXTERN_C_END
234 #pragma clang diagnostic pop
236 // @@protoc_insertion_point(global_scope)
238 // clang-format on