Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
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.

FieldMask.pbobjc.h 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/field_mask.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 < 30002
  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 30002 < 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. NS_ASSUME_NONNULL_BEGIN
  28. #pragma mark - GPBFieldMaskRoot
  29. /**
  30. * Exposes the extension registry for this file.
  31. *
  32. * The base class provides:
  33. * @code
  34. * + (GPBExtensionRegistry *)extensionRegistry;
  35. * @endcode
  36. * which is a @c GPBExtensionRegistry that includes all the extensions defined by
  37. * this file and all files that it depends on.
  38. **/
  39. @interface GPBFieldMaskRoot : GPBRootObject
  40. @end
  41. #pragma mark - GPBFieldMask
  42. typedef GPB_ENUM(GPBFieldMask_FieldNumber) {
  43. GPBFieldMask_FieldNumber_PathsArray = 1,
  44. };
  45. /**
  46. * `FieldMask` represents a set of symbolic field paths, for example:
  47. *
  48. * paths: "f.a"
  49. * paths: "f.b.d"
  50. *
  51. * Here `f` represents a field in some root message, `a` and `b`
  52. * fields in the message found in `f`, and `d` a field found in the
  53. * message in `f.b`.
  54. *
  55. * Field masks are used to specify a subset of fields that should be
  56. * returned by a get operation or modified by an update operation.
  57. * Field masks also have a custom JSON encoding (see below).
  58. *
  59. * # Field Masks in Projections
  60. *
  61. * When used in the context of a projection, a response message or
  62. * sub-message is filtered by the API to only contain those fields as
  63. * specified in the mask. For example, if the mask in the previous
  64. * example is applied to a response message as follows:
  65. *
  66. * f {
  67. * a : 22
  68. * b {
  69. * d : 1
  70. * x : 2
  71. * }
  72. * y : 13
  73. * }
  74. * z: 8
  75. *
  76. * The result will not contain specific values for fields x,y and z
  77. * (their value will be set to the default, and omitted in proto text
  78. * output):
  79. *
  80. *
  81. * f {
  82. * a : 22
  83. * b {
  84. * d : 1
  85. * }
  86. * }
  87. *
  88. * A repeated field is not allowed except at the last position of a
  89. * paths string.
  90. *
  91. * If a FieldMask object is not present in a get operation, the
  92. * operation applies to all fields (as if a FieldMask of all fields
  93. * had been specified).
  94. *
  95. * Note that a field mask does not necessarily apply to the
  96. * top-level response message. In case of a REST get operation, the
  97. * field mask applies directly to the response, but in case of a REST
  98. * list operation, the mask instead applies to each individual message
  99. * in the returned resource list. In case of a REST custom method,
  100. * other definitions may be used. Where the mask applies will be
  101. * clearly documented together with its declaration in the API. In
  102. * any case, the effect on the returned resource/resources is required
  103. * behavior for APIs.
  104. *
  105. * # Field Masks in Update Operations
  106. *
  107. * A field mask in update operations specifies which fields of the
  108. * targeted resource are going to be updated. The API is required
  109. * to only change the values of the fields as specified in the mask
  110. * and leave the others untouched. If a resource is passed in to
  111. * describe the updated values, the API ignores the values of all
  112. * fields not covered by the mask.
  113. *
  114. * If a repeated field is specified for an update operation, the existing
  115. * repeated values in the target resource will be overwritten by the new values.
  116. * Note that a repeated field is only allowed in the last position of a `paths`
  117. * string.
  118. *
  119. * If a sub-message is specified in the last position of the field mask for an
  120. * update operation, then the existing sub-message in the target resource is
  121. * overwritten. Given the target message:
  122. *
  123. * f {
  124. * b {
  125. * d : 1
  126. * x : 2
  127. * }
  128. * c : 1
  129. * }
  130. *
  131. * And an update message:
  132. *
  133. * f {
  134. * b {
  135. * d : 10
  136. * }
  137. * }
  138. *
  139. * then if the field mask is:
  140. *
  141. * paths: "f.b"
  142. *
  143. * then the result will be:
  144. *
  145. * f {
  146. * b {
  147. * d : 10
  148. * }
  149. * c : 1
  150. * }
  151. *
  152. * However, if the update mask was:
  153. *
  154. * paths: "f.b.d"
  155. *
  156. * then the result would be:
  157. *
  158. * f {
  159. * b {
  160. * d : 10
  161. * x : 2
  162. * }
  163. * c : 1
  164. * }
  165. *
  166. * In order to reset a field's value to the default, the field must
  167. * be in the mask and set to the default value in the provided resource.
  168. * Hence, in order to reset all fields of a resource, provide a default
  169. * instance of the resource and set all fields in the mask, or do
  170. * not provide a mask as described below.
  171. *
  172. * If a field mask is not present on update, the operation applies to
  173. * all fields (as if a field mask of all fields has been specified).
  174. * Note that in the presence of schema evolution, this may mean that
  175. * fields the client does not know and has therefore not filled into
  176. * the request will be reset to their default. If this is unwanted
  177. * behavior, a specific service may require a client to always specify
  178. * a field mask, producing an error if not.
  179. *
  180. * As with get operations, the location of the resource which
  181. * describes the updated values in the request message depends on the
  182. * operation kind. In any case, the effect of the field mask is
  183. * required to be honored by the API.
  184. *
  185. * ## Considerations for HTTP REST
  186. *
  187. * The HTTP kind of an update operation which uses a field mask must
  188. * be set to PATCH instead of PUT in order to satisfy HTTP semantics
  189. * (PUT must only be used for full updates).
  190. *
  191. * # JSON Encoding of Field Masks
  192. *
  193. * In JSON, a field mask is encoded as a single string where paths are
  194. * separated by a comma. Fields name in each path are converted
  195. * to/from lower-camel naming conventions.
  196. *
  197. * As an example, consider the following message declarations:
  198. *
  199. * message Profile {
  200. * User user = 1;
  201. * Photo photo = 2;
  202. * }
  203. * message User {
  204. * string display_name = 1;
  205. * string address = 2;
  206. * }
  207. *
  208. * In proto a field mask for `Profile` may look as such:
  209. *
  210. * mask {
  211. * paths: "user.display_name"
  212. * paths: "photo"
  213. * }
  214. *
  215. * In JSON, the same mask is represented as below:
  216. *
  217. * {
  218. * mask: "user.displayName,photo"
  219. * }
  220. *
  221. * # Field Masks and Oneof Fields
  222. *
  223. * Field masks treat fields in oneofs just as regular fields. Consider the
  224. * following message:
  225. *
  226. * message SampleMessage {
  227. * oneof test_oneof {
  228. * string name = 4;
  229. * SubMessage sub_message = 9;
  230. * }
  231. * }
  232. *
  233. * The field mask can be:
  234. *
  235. * mask {
  236. * paths: "name"
  237. * }
  238. *
  239. * Or:
  240. *
  241. * mask {
  242. * paths: "sub_message"
  243. * }
  244. *
  245. * Note that oneof type names ("test_oneof" in this case) cannot be used in
  246. * paths.
  247. *
  248. * ## Field Mask Verification
  249. *
  250. * The implementation of any API method which has a FieldMask type field in the
  251. * request should verify the included field paths, and return an
  252. * `INVALID_ARGUMENT` error if any path is duplicated or unmappable.
  253. **/
  254. @interface GPBFieldMask : GPBMessage
  255. /** The set of field mask paths. */
  256. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *pathsArray;
  257. /** The number of items in @c pathsArray without causing the array to be created. */
  258. @property(nonatomic, readonly) NSUInteger pathsArray_Count;
  259. @end
  260. NS_ASSUME_NONNULL_END
  261. CF_EXTERN_C_END
  262. #pragma clang diagnostic pop
  263. // @@protoc_insertion_point(global_scope)