Any.pbobjc.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/any.proto
  3. #import "GPBProtocolBuffers.h"
  4. #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000
  5. #error This file was generated by a different version of protoc-gen-objc which is incompatible with your Protocol Buffer sources.
  6. #endif
  7. // @@protoc_insertion_point(imports)
  8. CF_EXTERN_C_BEGIN
  9. NS_ASSUME_NONNULL_BEGIN
  10. #pragma mark - GPBAnyRoot
  11. @interface GPBAnyRoot : GPBRootObject
  12. // The base class provides:
  13. // + (GPBExtensionRegistry *)extensionRegistry;
  14. // which is an GPBExtensionRegistry that includes all the extensions defined by
  15. // this file and all files that it depends on.
  16. @end
  17. #pragma mark - GPBAny
  18. typedef GPB_ENUM(GPBAny_FieldNumber) {
  19. GPBAny_FieldNumber_TypeURL = 1,
  20. GPBAny_FieldNumber_Value = 2,
  21. };
  22. // `Any` contains an arbitrary serialized message along with a URL
  23. // that describes the type of the serialized message.
  24. //
  25. // The proto runtimes and/or compiler will eventually
  26. // provide utilities to pack/unpack Any values (projected Q1/15).
  27. //
  28. // # JSON
  29. // The JSON representation of an `Any` value uses the regular
  30. // representation of the deserialized, embedded message, with an
  31. // additional field `@type` which contains the type URL. Example:
  32. //
  33. // package google.profile;
  34. // message Person {
  35. // string first_name = 1;
  36. // string last_name = 2;
  37. // }
  38. //
  39. // {
  40. // "@type": "type.googleapis.com/google.profile.Person",
  41. // "firstName": <string>,
  42. // "lastName": <string>
  43. // }
  44. //
  45. // If the embedded message type is well-known and has a custom JSON
  46. // representation, that representation will be embedded adding a field
  47. // `value` which holds the custom JSON in addition to the the `@type`
  48. // field. Example (for message [google.protobuf.Duration][google.protobuf.Duration]):
  49. //
  50. // {
  51. // "@type": "type.googleapis.com/google.protobuf.Duration",
  52. // "value": "1.212s"
  53. // }
  54. @interface GPBAny : GPBMessage
  55. // A URL/resource name whose content describes the type of the
  56. // serialized message.
  57. //
  58. // For URLs which use the schema `http`, `https`, or no schema, the
  59. // following restrictions and interpretations apply:
  60. //
  61. // * If no schema is provided, `https` is assumed.
  62. // * The last segment of the URL's path must represent the fully
  63. // qualified name of the type (as in `path/google.protobuf.Duration`).
  64. // * An HTTP GET on the URL must yield a [google.protobuf.Type][google.protobuf.Type]
  65. // value in binary format, or produce an error.
  66. // * Applications are allowed to cache lookup results based on the
  67. // URL, or have them precompiled into a binary to avoid any
  68. // lookup. Therefore, binary compatibility needs to be preserved
  69. // on changes to types. (Use versioned type names to manage
  70. // breaking changes.)
  71. //
  72. // Schemas other than `http`, `https` (or the empty schema) might be
  73. // used with implementation specific semantics.
  74. //
  75. // Types originating from the `google.*` package
  76. // namespace should use `type.googleapis.com/full.type.name` (without
  77. // schema and path). A type service will eventually become available which
  78. // serves those URLs (projected Q2/15).
  79. @property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL;
  80. // Must be valid serialized data of the above specified type.
  81. @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
  82. @end
  83. NS_ASSUME_NONNULL_END
  84. CF_EXTERN_C_END
  85. // @@protoc_insertion_point(global_scope)