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.

204 lines
6.1 KiB

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