You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
6.0 KiB

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