Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame^] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/struct.proto |
| 3 | |
| 4 | #import "GPBProtocolBuffers.h" |
| 5 | |
| 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 |
| 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. |
| 8 | #endif |
| 9 | |
| 10 | // @@protoc_insertion_point(imports) |
| 11 | |
| 12 | CF_EXTERN_C_BEGIN |
| 13 | |
| 14 | @class GPBListValue; |
| 15 | @class GPBStruct; |
| 16 | |
| 17 | NS_ASSUME_NONNULL_BEGIN |
| 18 | |
| 19 | #pragma mark - Enum GPBNullValue |
| 20 | |
| 21 | // `NullValue` is a singleton enumeration to represent the null value for the |
| 22 | // `Value` type union. |
| 23 | // |
| 24 | // The JSON representation for `NullValue` is JSON `null`. |
| 25 | typedef GPB_ENUM(GPBNullValue) { |
| 26 | GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, |
| 27 | // Null value. |
| 28 | GPBNullValue_NullValue = 0, |
| 29 | }; |
| 30 | |
| 31 | GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void); |
| 32 | |
| 33 | BOOL GPBNullValue_IsValidValue(int32_t value); |
| 34 | |
| 35 | #pragma mark - GPBStructRoot |
| 36 | |
| 37 | @interface GPBStructRoot : GPBRootObject |
| 38 | |
| 39 | // The base class provides: |
| 40 | // + (GPBExtensionRegistry *)extensionRegistry; |
| 41 | // which is an GPBExtensionRegistry that includes all the extensions defined by |
| 42 | // this file and all files that it depends on. |
| 43 | |
| 44 | @end |
| 45 | |
| 46 | #pragma mark - GPBStruct |
| 47 | |
| 48 | typedef GPB_ENUM(GPBStruct_FieldNumber) { |
| 49 | GPBStruct_FieldNumber_Fields = 1, |
| 50 | }; |
| 51 | |
| 52 | // `Struct` represents a structured data value, consisting of fields |
| 53 | // which map to dynamically typed values. In some languages, `Struct` |
| 54 | // might be supported by a native representation. For example, in |
| 55 | // scripting languages like JS a struct is represented as an |
| 56 | // object. The details of that representation are described together |
| 57 | // with the proto support for the language. |
| 58 | // |
| 59 | // The JSON representation for `Struct` is JSON object. |
| 60 | @interface GPBStruct : GPBMessage |
| 61 | |
| 62 | // Map of dynamically typed values. |
| 63 | // |fields| values are |GPBValue| |
| 64 | @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary *fields; |
| 65 | @property(nonatomic, readonly) NSUInteger fields_Count; |
| 66 | |
| 67 | @end |
| 68 | |
| 69 | #pragma mark - GPBValue |
| 70 | |
| 71 | typedef GPB_ENUM(GPBValue_FieldNumber) { |
| 72 | GPBValue_FieldNumber_NullValue = 1, |
| 73 | GPBValue_FieldNumber_NumberValue = 2, |
| 74 | GPBValue_FieldNumber_StringValue = 3, |
| 75 | GPBValue_FieldNumber_BoolValue = 4, |
| 76 | GPBValue_FieldNumber_StructValue = 5, |
| 77 | GPBValue_FieldNumber_ListValue = 6, |
| 78 | }; |
| 79 | |
| 80 | typedef GPB_ENUM(GPBValue_Kind_OneOfCase) { |
| 81 | GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0, |
| 82 | GPBValue_Kind_OneOfCase_NullValue = 1, |
| 83 | GPBValue_Kind_OneOfCase_NumberValue = 2, |
| 84 | GPBValue_Kind_OneOfCase_StringValue = 3, |
| 85 | GPBValue_Kind_OneOfCase_BoolValue = 4, |
| 86 | GPBValue_Kind_OneOfCase_StructValue = 5, |
| 87 | GPBValue_Kind_OneOfCase_ListValue = 6, |
| 88 | }; |
| 89 | |
| 90 | // `Value` represents a dynamically typed value which can be either |
| 91 | // null, a number, a string, a boolean, a recursive struct value, or a |
| 92 | // list of values. A producer of value is expected to set one of that |
| 93 | // variants, absence of any variant indicates an error. |
| 94 | // |
| 95 | // The JSON representation for `Value` is JSON value. |
| 96 | @interface GPBValue : GPBMessage |
| 97 | |
| 98 | // The kind of value. |
| 99 | @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase; |
| 100 | |
| 101 | // Represents a null value. |
| 102 | @property(nonatomic, readwrite) GPBNullValue nullValue; |
| 103 | |
| 104 | // Represents a double value. |
| 105 | @property(nonatomic, readwrite) double numberValue; |
| 106 | |
| 107 | // Represents a string value. |
| 108 | @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue; |
| 109 | |
| 110 | // Represents a boolean value. |
| 111 | @property(nonatomic, readwrite) BOOL boolValue; |
| 112 | |
| 113 | // Represents a structured value. |
| 114 | @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue; |
| 115 | |
| 116 | // Represents a repeated `Value`. |
| 117 | @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue; |
| 118 | |
| 119 | @end |
| 120 | |
| 121 | int32_t GPBValue_NullValue_RawValue(GPBValue *message); |
| 122 | void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value); |
| 123 | |
| 124 | void GPBValue_ClearKindOneOfCase(GPBValue *message); |
| 125 | |
| 126 | #pragma mark - GPBListValue |
| 127 | |
| 128 | typedef GPB_ENUM(GPBListValue_FieldNumber) { |
| 129 | GPBListValue_FieldNumber_ValuesArray = 1, |
| 130 | }; |
| 131 | |
| 132 | // `ListValue` is a wrapper around a repeated field of values. |
| 133 | // |
| 134 | // The JSON representation for `ListValue` is JSON array. |
| 135 | @interface GPBListValue : GPBMessage |
| 136 | |
| 137 | // Repeated field of dynamically typed values. |
| 138 | // |valuesArray| contains |GPBValue| |
| 139 | @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *valuesArray; |
| 140 | @property(nonatomic, readonly) NSUInteger valuesArray_Count; |
| 141 | |
| 142 | @end |
| 143 | |
| 144 | NS_ASSUME_NONNULL_END |
| 145 | |
| 146 | CF_EXTERN_C_END |
| 147 | |
| 148 | // @@protoc_insertion_point(global_scope) |