| Index: third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.h
|
| diff --git a/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.h b/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.h
|
| index f40414fa863f21eec0f510c69ebce309572d61bf..3924b4b75859d23e9e6817e13d64f48169db85b3 100644
|
| --- a/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.h
|
| +++ b/third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.h
|
| @@ -3,44 +3,55 @@
|
|
|
| #import "GPBProtocolBuffers.h"
|
|
|
| -#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000
|
| +#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
|
| #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
|
| #endif
|
|
|
| // @@protoc_insertion_point(imports)
|
|
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
| +
|
| CF_EXTERN_C_BEGIN
|
|
|
| @class GPBListValue;
|
| @class GPBStruct;
|
| +@class GPBValue;
|
|
|
| NS_ASSUME_NONNULL_BEGIN
|
|
|
| #pragma mark - Enum GPBNullValue
|
|
|
| -// `NullValue` is a singleton enumeration to represent the null value for the
|
| -// `Value` type union.
|
| -//
|
| -// The JSON representation for `NullValue` is JSON `null`.
|
| +/// `NullValue` is a singleton enumeration to represent the null value for the
|
| +/// `Value` type union.
|
| +///
|
| +/// The JSON representation for `NullValue` is JSON `null`.
|
| typedef GPB_ENUM(GPBNullValue) {
|
| + /// Value used if any message's field encounters a value that is not defined
|
| + /// by this enum. The message will also have C functions to get/set the rawValue
|
| + /// of the field.
|
| GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
|
| - // Null value.
|
| + /// Null value.
|
| GPBNullValue_NullValue = 0,
|
| };
|
|
|
| GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void);
|
|
|
| +/// Checks to see if the given value is defined by the enum or was not known at
|
| +/// the time this source was generated.
|
| BOOL GPBNullValue_IsValidValue(int32_t value);
|
|
|
| #pragma mark - GPBStructRoot
|
|
|
| +/// Exposes the extension registry for this file.
|
| +///
|
| +/// The base class provides:
|
| +/// @code
|
| +/// + (GPBExtensionRegistry *)extensionRegistry;
|
| +/// @endcode
|
| +/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
|
| +/// this file and all files that it depends on.
|
| @interface GPBStructRoot : GPBRootObject
|
| -
|
| -// The base class provides:
|
| -// + (GPBExtensionRegistry *)extensionRegistry;
|
| -// which is an GPBExtensionRegistry that includes all the extensions defined by
|
| -// this file and all files that it depends on.
|
| -
|
| @end
|
|
|
| #pragma mark - GPBStruct
|
| @@ -49,19 +60,19 @@ typedef GPB_ENUM(GPBStruct_FieldNumber) {
|
| GPBStruct_FieldNumber_Fields = 1,
|
| };
|
|
|
| -// `Struct` represents a structured data value, consisting of fields
|
| -// which map to dynamically typed values. In some languages, `Struct`
|
| -// might be supported by a native representation. For example, in
|
| -// scripting languages like JS a struct is represented as an
|
| -// object. The details of that representation are described together
|
| -// with the proto support for the language.
|
| -//
|
| -// The JSON representation for `Struct` is JSON object.
|
| +/// `Struct` represents a structured data value, consisting of fields
|
| +/// which map to dynamically typed values. In some languages, `Struct`
|
| +/// might be supported by a native representation. For example, in
|
| +/// scripting languages like JS a struct is represented as an
|
| +/// object. The details of that representation are described together
|
| +/// with the proto support for the language.
|
| +///
|
| +/// The JSON representation for `Struct` is JSON object.
|
| @interface GPBStruct : GPBMessage
|
|
|
| -// Map of dynamically typed values.
|
| -// |fields| values are |GPBValue|
|
| -@property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary *fields;
|
| +/// Unordered map of dynamically typed values.
|
| +@property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSString*, GPBValue*> *fields;
|
| +/// The number of items in @c fields without causing the array to be created.
|
| @property(nonatomic, readonly) NSUInteger fields_Count;
|
|
|
| @end
|
| @@ -87,40 +98,46 @@ typedef GPB_ENUM(GPBValue_Kind_OneOfCase) {
|
| GPBValue_Kind_OneOfCase_ListValue = 6,
|
| };
|
|
|
| -// `Value` represents a dynamically typed value which can be either
|
| -// null, a number, a string, a boolean, a recursive struct value, or a
|
| -// list of values. A producer of value is expected to set one of that
|
| -// variants, absence of any variant indicates an error.
|
| -//
|
| -// The JSON representation for `Value` is JSON value.
|
| +/// `Value` represents a dynamically typed value which can be either
|
| +/// null, a number, a string, a boolean, a recursive struct value, or a
|
| +/// list of values. A producer of value is expected to set one of that
|
| +/// variants, absence of any variant indicates an error.
|
| +///
|
| +/// The JSON representation for `Value` is JSON value.
|
| @interface GPBValue : GPBMessage
|
|
|
| -// The kind of value.
|
| +/// The kind of value.
|
| @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase;
|
|
|
| -// Represents a null value.
|
| +/// Represents a null value.
|
| @property(nonatomic, readwrite) GPBNullValue nullValue;
|
|
|
| -// Represents a double value.
|
| +/// Represents a double value.
|
| @property(nonatomic, readwrite) double numberValue;
|
|
|
| -// Represents a string value.
|
| +/// Represents a string value.
|
| @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue;
|
|
|
| -// Represents a boolean value.
|
| +/// Represents a boolean value.
|
| @property(nonatomic, readwrite) BOOL boolValue;
|
|
|
| -// Represents a structured value.
|
| +/// Represents a structured value.
|
| @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue;
|
|
|
| -// Represents a repeated `Value`.
|
| +/// Represents a repeated `Value`.
|
| @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue;
|
|
|
| @end
|
|
|
| +/// Fetches the raw value of a @c GPBValue's @c nullValue property, even
|
| +/// if the value was not defined by the enum at the time the code was generated.
|
| int32_t GPBValue_NullValue_RawValue(GPBValue *message);
|
| +/// Sets the raw value of an @c GPBValue's @c nullValue property, allowing
|
| +/// it to be set to a value that was not defined by the enum at the time the code
|
| +/// was generated.
|
| void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value);
|
|
|
| +/// Clears whatever value was set for the oneof 'kind'.
|
| void GPBValue_ClearKindOneOfCase(GPBValue *message);
|
|
|
| #pragma mark - GPBListValue
|
| @@ -129,14 +146,14 @@ typedef GPB_ENUM(GPBListValue_FieldNumber) {
|
| GPBListValue_FieldNumber_ValuesArray = 1,
|
| };
|
|
|
| -// `ListValue` is a wrapper around a repeated field of values.
|
| -//
|
| -// The JSON representation for `ListValue` is JSON array.
|
| +/// `ListValue` is a wrapper around a repeated field of values.
|
| +///
|
| +/// The JSON representation for `ListValue` is JSON array.
|
| @interface GPBListValue : GPBMessage
|
|
|
| -// Repeated field of dynamically typed values.
|
| -// |valuesArray| contains |GPBValue|
|
| -@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *valuesArray;
|
| +/// Repeated field of dynamically typed values.
|
| +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBValue*> *valuesArray;
|
| +/// The number of items in @c valuesArray without causing the array to be created.
|
| @property(nonatomic, readonly) NSUInteger valuesArray_Count;
|
|
|
| @end
|
| @@ -145,4 +162,6 @@ NS_ASSUME_NONNULL_END
|
|
|
| CF_EXTERN_C_END
|
|
|
| +#pragma clang diagnostic pop
|
| +
|
| // @@protoc_insertion_point(global_scope)
|
|
|