1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/struct.proto
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
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
11 #import <Protobuf/GPBDescriptor.h>
12 #import <Protobuf/GPBMessage.h>
13 #import <Protobuf/GPBRootObject.h>
15 #import "GPBDescriptor.h"
16 #import "GPBMessage.h"
17 #import "GPBRootObject.h"
20 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
21 #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
23 #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
24 #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
27 // @@protoc_insertion_point(imports)
29 #pragma clang diagnostic push
30 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
38 NS_ASSUME_NONNULL_BEGIN
40 #pragma mark - Enum GPBNullValue
43 * `NullValue` is a singleton enumeration to represent the null value for the
46 * The JSON representation for `NullValue` is JSON `null`.
48 typedef GPB_ENUM(GPBNullValue) {
50 * Value used if any message's field encounters a value that is not defined
51 * by this enum. The message will also have C functions to get/set the rawValue
54 GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
56 GPBNullValue_NullValue = 0,
59 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void);
62 * Checks to see if the given value is defined by the enum or was not known at
63 * the time this source was generated.
65 BOOL GPBNullValue_IsValidValue(int32_t value);
67 #pragma mark - GPBStructRoot
70 * Exposes the extension registry for this file.
72 * The base class provides:
74 * + (GPBExtensionRegistry *)extensionRegistry;
76 * which is a @c GPBExtensionRegistry that includes all the extensions defined by
77 * this file and all files that it depends on.
79 @interface GPBStructRoot : GPBRootObject
82 #pragma mark - GPBStruct
84 typedef GPB_ENUM(GPBStruct_FieldNumber) {
85 GPBStruct_FieldNumber_Fields = 1,
89 * `Struct` represents a structured data value, consisting of fields
90 * which map to dynamically typed values. In some languages, `Struct`
91 * might be supported by a native representation. For example, in
92 * scripting languages like JS a struct is represented as an
93 * object. The details of that representation are described together
94 * with the proto support for the language.
96 * The JSON representation for `Struct` is JSON object.
98 @interface GPBStruct : GPBMessage
100 /** Unordered map of dynamically typed values. */
101 @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSString*, GPBValue*> *fields;
102 /** The number of items in @c fields without causing the array to be created. */
103 @property(nonatomic, readonly) NSUInteger fields_Count;
107 #pragma mark - GPBValue
109 typedef GPB_ENUM(GPBValue_FieldNumber) {
110 GPBValue_FieldNumber_NullValue = 1,
111 GPBValue_FieldNumber_NumberValue = 2,
112 GPBValue_FieldNumber_StringValue = 3,
113 GPBValue_FieldNumber_BoolValue = 4,
114 GPBValue_FieldNumber_StructValue = 5,
115 GPBValue_FieldNumber_ListValue = 6,
118 typedef GPB_ENUM(GPBValue_Kind_OneOfCase) {
119 GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0,
120 GPBValue_Kind_OneOfCase_NullValue = 1,
121 GPBValue_Kind_OneOfCase_NumberValue = 2,
122 GPBValue_Kind_OneOfCase_StringValue = 3,
123 GPBValue_Kind_OneOfCase_BoolValue = 4,
124 GPBValue_Kind_OneOfCase_StructValue = 5,
125 GPBValue_Kind_OneOfCase_ListValue = 6,
129 * `Value` represents a dynamically typed value which can be either
130 * null, a number, a string, a boolean, a recursive struct value, or a
131 * list of values. A producer of value is expected to set one of that
132 * variants, absence of any variant indicates an error.
134 * The JSON representation for `Value` is JSON value.
136 @interface GPBValue : GPBMessage
138 /** The kind of value. */
139 @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase;
141 /** Represents a null value. */
142 @property(nonatomic, readwrite) GPBNullValue nullValue;
144 /** Represents a double value. */
145 @property(nonatomic, readwrite) double numberValue;
147 /** Represents a string value. */
148 @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue;
150 /** Represents a boolean value. */
151 @property(nonatomic, readwrite) BOOL boolValue;
153 /** Represents a structured value. */
154 @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue;
156 /** Represents a repeated `Value`. */
157 @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue;
162 * Fetches the raw value of a @c GPBValue's @c nullValue property, even
163 * if the value was not defined by the enum at the time the code was generated.
165 int32_t GPBValue_NullValue_RawValue(GPBValue *message);
167 * Sets the raw value of an @c GPBValue's @c nullValue property, allowing
168 * it to be set to a value that was not defined by the enum at the time the code
171 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value);
174 * Clears whatever value was set for the oneof 'kind'.
176 void GPBValue_ClearKindOneOfCase(GPBValue *message);
178 #pragma mark - GPBListValue
180 typedef GPB_ENUM(GPBListValue_FieldNumber) {
181 GPBListValue_FieldNumber_ValuesArray = 1,
185 * `ListValue` is a wrapper around a repeated field of values.
187 * The JSON representation for `ListValue` is JSON array.
189 @interface GPBListValue : GPBMessage
191 /** Repeated field of dynamically typed values. */
192 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBValue*> *valuesArray;
193 /** The number of items in @c valuesArray without causing the array to be created. */
194 @property(nonatomic, readonly) NSUInteger valuesArray_Count;
198 NS_ASSUME_NONNULL_END
202 #pragma clang diagnostic pop
204 // @@protoc_insertion_point(global_scope)