@snap/camera-kit 0.14.1 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/LICENSE.md +5921 -1485
  2. package/README.md +1 -1
  3. package/docs/html/assets/search.js +1 -1
  4. package/docs/html/classes/CameraKit.html +7 -7
  5. package/docs/html/classes/CameraKitSession.html +17 -25
  6. package/docs/html/classes/CameraKitSource.html +15 -10
  7. package/docs/html/classes/LensPerformanceMeasurement.html +7 -7
  8. package/docs/html/classes/LensPerformanceMetrics.html +7 -7
  9. package/docs/html/classes/LensRepository.html +7 -7
  10. package/docs/html/classes/Transform2D.html +7 -7
  11. package/docs/html/classes/TypedCustomEvent.html +7 -7
  12. package/docs/html/classes/TypedEventTarget.html +7 -7
  13. package/docs/html/functions/ConcatInjectable.html +202 -0
  14. package/docs/html/functions/Injectable.html +15 -16
  15. package/docs/html/functions/bootstrapCameraKit.html +7 -7
  16. package/docs/html/functions/createExtension.html +7 -7
  17. package/docs/html/functions/createImageSource.html +7 -7
  18. package/docs/html/functions/createMediaStreamSource.html +7 -7
  19. package/docs/html/functions/createUserMediaSource.html +7 -7
  20. package/docs/html/functions/createVideoSource.html +7 -7
  21. package/docs/html/functions/estimateLensPerformance.html +7 -7
  22. package/docs/html/functions/getRequiredBootstrapURLs.html +7 -7
  23. package/docs/html/functions/lensSourcesFactory.html +17 -9
  24. package/docs/html/functions/remoteApiServicesFactory.html +7 -7
  25. package/docs/html/index.html +9 -9
  26. package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +7 -7
  27. package/docs/html/interfaces/CameraKitSourceSubscriber.html +7 -7
  28. package/docs/html/interfaces/ComputedFrameMetrics.html +7 -7
  29. package/docs/html/interfaces/CreateSessionOptions.html +7 -7
  30. package/docs/html/interfaces/EstimatedLensPerformance.html +7 -7
  31. package/docs/html/interfaces/Lens.html +7 -7
  32. package/docs/html/interfaces/LensLaunchData.html +183 -0
  33. package/docs/html/interfaces/LensSource.html +28 -46
  34. package/docs/html/interfaces/MediaStreamSourceOptions.html +7 -7
  35. package/docs/html/interfaces/Preview.html +7 -7
  36. package/docs/html/interfaces/RemoteApiRequest.html +7 -7
  37. package/docs/html/interfaces/RemoteApiResponse.html +7 -7
  38. package/docs/html/interfaces/RemoteApiService.html +7 -7
  39. package/docs/html/interfaces/Snapcode.html +7 -7
  40. package/docs/html/interfaces/UriCancelRequest.html +7 -7
  41. package/docs/html/interfaces/UriRequest.html +7 -7
  42. package/docs/html/interfaces/UriResponse.html +7 -7
  43. package/docs/html/interfaces/VideoSourceOptions.html +7 -7
  44. package/docs/html/modules.html +12 -12
  45. package/docs/html/types/AssetLoader.html +7 -7
  46. package/docs/html/types/AssetTiming.html +7 -7
  47. package/docs/html/types/BenchmarkError.html +7 -7
  48. package/docs/html/types/BootstrapError.html +7 -7
  49. package/docs/html/types/CacheKeyNotFoundError.html +7 -7
  50. package/docs/html/types/CameraKitDeviceInfo.html +7 -7
  51. package/docs/html/types/CameraKitDeviceOptions.html +7 -7
  52. package/docs/html/types/CameraKitSessionEventListener.html +7 -7
  53. package/docs/html/types/CameraKitSessionEvents.html +7 -7
  54. package/docs/html/types/CameraKitSourceError.html +7 -7
  55. package/docs/html/types/CameraKitSourceInfo.html +7 -7
  56. package/docs/html/types/CameraKitSourceOptions.html +7 -7
  57. package/docs/html/types/ConfigurationError.html +7 -7
  58. package/docs/html/types/Keyboard.html +7 -7
  59. package/docs/html/types/KeyboardEvents.html +7 -7
  60. package/docs/html/types/LegalError.html +7 -7
  61. package/docs/html/types/LensAbortError.html +7 -7
  62. package/docs/html/types/LensAssetError.html +7 -7
  63. package/docs/html/types/LensContentValidationError.html +7 -7
  64. package/docs/html/types/LensError.html +7 -7
  65. package/docs/html/types/LensExecutionError.html +7 -7
  66. package/docs/html/types/LensImagePickerError.html +7 -7
  67. package/docs/html/types/LensMetricsEvents.html +7 -7
  68. package/docs/html/types/LensPerformanceCluster.html +7 -7
  69. package/docs/html/types/LensView.html +7 -7
  70. package/docs/html/types/LensWait.html +7 -7
  71. package/docs/html/types/PersistentStoreError.html +7 -7
  72. package/docs/html/types/PlatformNotSupportedError.html +7 -7
  73. package/docs/html/types/PublicContainer.html +7 -7
  74. package/docs/html/types/RemoteApiRequestHandler.html +7 -7
  75. package/docs/html/types/RemoteApiServices.html +7 -7
  76. package/docs/html/types/RemoteApiStatus.html +7 -7
  77. package/docs/html/types/RenderTarget.html +7 -7
  78. package/docs/html/types/Uri.html +7 -7
  79. package/docs/html/types/WebGLError.html +7 -7
  80. package/docs/html/variables/extensionRequestContext.html +7 -7
  81. package/docs/md/README.md +1 -1
  82. package/docs/md/classes/CameraKit.md +1 -1
  83. package/docs/md/classes/CameraKitSession.md +11 -22
  84. package/docs/md/classes/CameraKitSource.md +11 -5
  85. package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
  86. package/docs/md/classes/LensPerformanceMetrics.md +1 -1
  87. package/docs/md/classes/LensRepository.md +1 -1
  88. package/docs/md/classes/Transform2D.md +1 -1
  89. package/docs/md/classes/TypedCustomEvent.md +1 -1
  90. package/docs/md/classes/TypedEventTarget.md +1 -1
  91. package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +1 -1
  92. package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
  93. package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
  94. package/docs/md/interfaces/CreateSessionOptions.md +1 -1
  95. package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
  96. package/docs/md/interfaces/Lens.md +1 -1
  97. package/docs/md/interfaces/LensLaunchData.md +53 -0
  98. package/docs/md/interfaces/LensSource.md +23 -25
  99. package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
  100. package/docs/md/interfaces/Preview.md +1 -1
  101. package/docs/md/interfaces/RemoteApiRequest.md +1 -1
  102. package/docs/md/interfaces/RemoteApiResponse.md +1 -1
  103. package/docs/md/interfaces/RemoteApiService.md +1 -1
  104. package/docs/md/interfaces/Snapcode.md +1 -1
  105. package/docs/md/interfaces/UriCancelRequest.md +1 -1
  106. package/docs/md/interfaces/UriRequest.md +1 -1
  107. package/docs/md/interfaces/UriResponse.md +1 -1
  108. package/docs/md/interfaces/VideoSourceOptions.md +1 -1
  109. package/docs/md/modules.md +125 -28
  110. package/lib/CameraKit.d.ts +14 -6
  111. package/lib/__tests__/data.d.ts +2 -2
  112. package/lib/__tests__/data.js +2 -2
  113. package/lib/__tests__/data.js.map +1 -1
  114. package/lib/bootstrapCameraKit.js +12 -3
  115. package/lib/bootstrapCameraKit.js.map +1 -1
  116. package/lib/clients/createTsProtoClient.d.ts +47 -0
  117. package/lib/clients/createTsProtoClient.js +53 -0
  118. package/lib/clients/createTsProtoClient.js.map +1 -0
  119. package/lib/clients/grpcHandler.d.ts +23 -0
  120. package/lib/clients/grpcHandler.js +87 -0
  121. package/lib/clients/grpcHandler.js.map +1 -0
  122. package/lib/clients/lensesClient.d.ts +9 -0
  123. package/lib/clients/lensesClient.js +6 -0
  124. package/lib/clients/lensesClient.js.map +1 -0
  125. package/lib/common/entries.d.ts +1 -0
  126. package/lib/common/entries.js +2 -0
  127. package/lib/common/entries.js.map +1 -1
  128. package/lib/common/result.d.ts +36 -0
  129. package/lib/common/result.js +40 -0
  130. package/lib/common/result.js.map +1 -0
  131. package/lib/common/unionBy.d.ts +28 -0
  132. package/lib/common/unionBy.js +46 -0
  133. package/lib/common/unionBy.js.map +1 -0
  134. package/lib/configuration.js +14 -1
  135. package/lib/configuration.js.map +1 -1
  136. package/lib/dependency-injection/Injectable.d.ts +67 -11
  137. package/lib/dependency-injection/Injectable.js +21 -2
  138. package/lib/dependency-injection/Injectable.js.map +1 -1
  139. package/lib/dependency-injection/RootServices.d.ts +5 -1
  140. package/lib/dependency-injection/RootServices.js.map +1 -1
  141. package/lib/environment.json +1 -1
  142. package/lib/extensions/RemoteApiServices.d.ts +1 -1
  143. package/lib/extensions/RemoteApiServices.js +7 -7
  144. package/lib/extensions/RemoteApiServices.js.map +1 -1
  145. package/lib/extensions/uriHandlersRegister.d.ts +6 -6
  146. package/lib/extensions/uriHandlersRegister.js +1 -1
  147. package/lib/extensions/uriHandlersRegister.js.map +1 -1
  148. package/lib/generated-proto/blizzard/cameraKitEvents.js.map +1 -1
  149. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +15 -17
  150. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +62 -69
  151. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -1
  152. package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +6 -0
  153. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +68 -0
  154. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -1
  155. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +5 -6
  156. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +11 -25
  157. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -1
  158. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +19 -14
  159. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +145 -64
  160. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -1
  161. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +2 -0
  162. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +30 -0
  163. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -1
  164. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +15 -16
  165. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +36 -62
  166. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -1
  167. package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +1294 -12
  168. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +200 -0
  169. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -1
  170. package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +4 -0
  171. package/lib/generated-proto/pb_schema/cdp/cof/config_result.js +4 -0
  172. package/lib/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -1
  173. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +39 -45
  174. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js +74 -192
  175. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -1
  176. package/lib/handlers/defaultFetchHandler.js +1 -5
  177. package/lib/handlers/defaultFetchHandler.js.map +1 -1
  178. package/lib/index.d.ts +3 -3
  179. package/lib/index.js +2 -6
  180. package/lib/index.js.map +1 -1
  181. package/lib/lens/Lens.d.ts +2 -12
  182. package/lib/lens/Lens.js +2 -2
  183. package/lib/lens/Lens.js.map +1 -1
  184. package/lib/lens/LensLaunchData.d.ts +37 -0
  185. package/lib/lens/LensLaunchData.js +35 -0
  186. package/lib/lens/LensLaunchData.js.map +1 -0
  187. package/lib/lens/LensRepository.d.ts +4 -7
  188. package/lib/lens/LensRepository.js +24 -35
  189. package/lib/lens/LensRepository.js.map +1 -1
  190. package/lib/lens/LensSource.d.ts +43 -0
  191. package/lib/lens/LensSource.js +42 -0
  192. package/lib/lens/LensSource.js.map +1 -0
  193. package/lib/lens/assets/LensAssetRepository.js +2 -4
  194. package/lib/lens/assets/LensAssetRepository.js.map +1 -1
  195. package/lib/lens/assets/LensAssetsProvider.d.ts +1 -1
  196. package/lib/lens/cameraKitLensSource.d.ts +16 -0
  197. package/lib/lens/cameraKitLensSource.js +59 -0
  198. package/lib/lens/cameraKitLensSource.js.map +1 -0
  199. package/lib/lens-core-module/lensCore.d.ts +2 -1
  200. package/lib/lens-core-module/lensCore.js +6 -1
  201. package/lib/lens-core-module/lensCore.js.map +1 -1
  202. package/lib/lens-core-module/lensCoreError.js +1 -1
  203. package/lib/lens-core-module/lensCoreError.js.map +1 -1
  204. package/lib/lensCoreWasmVersions.json +3 -3
  205. package/lib/media-sources/CameraKitSource.d.ts +10 -4
  206. package/lib/media-sources/CameraKitSource.js +11 -4
  207. package/lib/media-sources/CameraKitSource.js.map +1 -1
  208. package/lib/media-sources/ImageSource.js +1 -11
  209. package/lib/media-sources/ImageSource.js.map +1 -1
  210. package/lib/media-sources/MediaStreamSource.js +1 -5
  211. package/lib/media-sources/MediaStreamSource.js.map +1 -1
  212. package/lib/media-sources/VideoSource.js +1 -11
  213. package/lib/media-sources/VideoSource.js.map +1 -1
  214. package/lib/metrics/businessEventsReporter.js +1 -1
  215. package/lib/metrics/businessEventsReporter.js.map +1 -1
  216. package/lib/metrics/reporters/reportGlobalException.d.ts +7 -0
  217. package/lib/metrics/reporters/reportGlobalException.js +22 -4
  218. package/lib/metrics/reporters/reportGlobalException.js.map +1 -1
  219. package/lib/metrics/reporters/reportHttpMetrics.js +14 -0
  220. package/lib/metrics/reporters/reportHttpMetrics.js.map +1 -1
  221. package/lib/metrics/reporters/reportLensValidationFailed.d.ts +1 -1
  222. package/lib/metrics/reporters/reportLensView.d.ts +1 -1
  223. package/lib/metrics/reporters/reportLensWait.d.ts +1 -1
  224. package/lib/metrics/reporters/reportSessionException.d.ts +1 -1
  225. package/lib/metrics/reporters/reporters.d.ts +1 -1
  226. package/lib/persistence/ExpiringPersistence.js +3 -4
  227. package/lib/persistence/ExpiringPersistence.js.map +1 -1
  228. package/lib/platform/platformInfo.js +1 -1
  229. package/lib/platform/platformInfo.js.map +1 -1
  230. package/lib/remote-configuration/cofHandler.d.ts +1 -0
  231. package/lib/remote-configuration/cofHandler.js +61 -50
  232. package/lib/remote-configuration/cofHandler.js.map +1 -1
  233. package/lib/session/CameraKitSession.d.ts +9 -11
  234. package/lib/session/CameraKitSession.js +22 -18
  235. package/lib/session/CameraKitSession.js.map +1 -1
  236. package/lib/session/CameraKitSessionEvents.d.ts +1 -1
  237. package/lib/session/CameraKitSessionEvents.js.map +1 -1
  238. package/lib/session/LensKeyboard.d.ts +7 -1
  239. package/lib/session/lensState.d.ts +3 -3
  240. package/lib/session/lensState.js +40 -15
  241. package/lib/session/lensState.js.map +1 -1
  242. package/package.json +2 -2
  243. package/docs/html/classes/LensSources.html +0 -160
  244. package/docs/html/types/LensLaunchParams.html +0 -115
  245. package/docs/md/classes/LensSources.md +0 -29
  246. package/lib/common/any.d.ts +0 -19
  247. package/lib/common/any.js +0 -53
  248. package/lib/common/any.js.map +0 -1
  249. package/lib/extensions/LensSources.d.ts +0 -58
  250. package/lib/extensions/LensSources.js +0 -54
  251. package/lib/extensions/LensSources.js.map +0 -1
  252. package/lib/lens/LensLaunchParams.d.ts +0 -19
  253. package/lib/lens/LensLaunchParams.js +0 -40
  254. package/lib/lens/LensLaunchParams.js.map +0 -1
  255. package/lib/lens/index.d.ts +0 -7
  256. package/lib/lens/index.js +0 -7
  257. package/lib/lens/index.js.map +0 -1
  258. package/lib/lens/lensEnvelopeUtil.d.ts +0 -5
  259. package/lib/lens/lensEnvelopeUtil.js +0 -19
  260. package/lib/lens/lensEnvelopeUtil.js.map +0 -1
  261. package/lib/lens/lensHttpUtil.d.ts +0 -5
  262. package/lib/lens/lensHttpUtil.js +0 -52
  263. package/lib/lens/lensHttpUtil.js.map +0 -1
@@ -8,43 +8,43 @@ export var FieldDescriptorProto_Type;
8
8
  * TYPE_DOUBLE - 0 is reserved for errors.
9
9
  * Order is weird for historical reasons.
10
10
  */
11
- FieldDescriptorProto_Type["TYPE_DOUBLE"] = "TYPE_DOUBLE";
12
- FieldDescriptorProto_Type["TYPE_FLOAT"] = "TYPE_FLOAT";
11
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE";
12
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT";
13
13
  /**
14
14
  * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
15
15
  * negative values are likely.
16
16
  */
17
- FieldDescriptorProto_Type["TYPE_INT64"] = "TYPE_INT64";
18
- FieldDescriptorProto_Type["TYPE_UINT64"] = "TYPE_UINT64";
17
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64";
18
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64";
19
19
  /**
20
20
  * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
21
21
  * negative values are likely.
22
22
  */
23
- FieldDescriptorProto_Type["TYPE_INT32"] = "TYPE_INT32";
24
- FieldDescriptorProto_Type["TYPE_FIXED64"] = "TYPE_FIXED64";
25
- FieldDescriptorProto_Type["TYPE_FIXED32"] = "TYPE_FIXED32";
26
- FieldDescriptorProto_Type["TYPE_BOOL"] = "TYPE_BOOL";
27
- FieldDescriptorProto_Type["TYPE_STRING"] = "TYPE_STRING";
23
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32";
24
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64";
25
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32";
26
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL";
27
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING";
28
28
  /**
29
29
  * TYPE_GROUP - Tag-delimited aggregate.
30
30
  * Group type is deprecated and not supported in proto3. However, Proto3
31
31
  * implementations should still be able to parse the group wire format and
32
32
  * treat group fields as unknown fields.
33
33
  */
34
- FieldDescriptorProto_Type["TYPE_GROUP"] = "TYPE_GROUP";
34
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
35
35
  /** TYPE_MESSAGE - Length-delimited aggregate. */
36
- FieldDescriptorProto_Type["TYPE_MESSAGE"] = "TYPE_MESSAGE";
36
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE";
37
37
  /** TYPE_BYTES - New in version 2. */
38
- FieldDescriptorProto_Type["TYPE_BYTES"] = "TYPE_BYTES";
39
- FieldDescriptorProto_Type["TYPE_UINT32"] = "TYPE_UINT32";
40
- FieldDescriptorProto_Type["TYPE_ENUM"] = "TYPE_ENUM";
41
- FieldDescriptorProto_Type["TYPE_SFIXED32"] = "TYPE_SFIXED32";
42
- FieldDescriptorProto_Type["TYPE_SFIXED64"] = "TYPE_SFIXED64";
38
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES";
39
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32";
40
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM";
41
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32";
42
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64";
43
43
  /** TYPE_SINT32 - Uses ZigZag encoding. */
44
- FieldDescriptorProto_Type["TYPE_SINT32"] = "TYPE_SINT32";
44
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32";
45
45
  /** TYPE_SINT64 - Uses ZigZag encoding. */
46
- FieldDescriptorProto_Type["TYPE_SINT64"] = "TYPE_SINT64";
47
- FieldDescriptorProto_Type["UNRECOGNIZED"] = "UNRECOGNIZED";
46
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64";
47
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
48
48
  })(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {}));
49
49
  export function fieldDescriptorProto_TypeFromJSON(object) {
50
50
  switch (object) {
@@ -150,55 +150,13 @@ export function fieldDescriptorProto_TypeToJSON(object) {
150
150
  return "UNKNOWN";
151
151
  }
152
152
  }
153
- export function fieldDescriptorProto_TypeToNumber(object) {
154
- switch (object) {
155
- case FieldDescriptorProto_Type.TYPE_DOUBLE:
156
- return 1;
157
- case FieldDescriptorProto_Type.TYPE_FLOAT:
158
- return 2;
159
- case FieldDescriptorProto_Type.TYPE_INT64:
160
- return 3;
161
- case FieldDescriptorProto_Type.TYPE_UINT64:
162
- return 4;
163
- case FieldDescriptorProto_Type.TYPE_INT32:
164
- return 5;
165
- case FieldDescriptorProto_Type.TYPE_FIXED64:
166
- return 6;
167
- case FieldDescriptorProto_Type.TYPE_FIXED32:
168
- return 7;
169
- case FieldDescriptorProto_Type.TYPE_BOOL:
170
- return 8;
171
- case FieldDescriptorProto_Type.TYPE_STRING:
172
- return 9;
173
- case FieldDescriptorProto_Type.TYPE_GROUP:
174
- return 10;
175
- case FieldDescriptorProto_Type.TYPE_MESSAGE:
176
- return 11;
177
- case FieldDescriptorProto_Type.TYPE_BYTES:
178
- return 12;
179
- case FieldDescriptorProto_Type.TYPE_UINT32:
180
- return 13;
181
- case FieldDescriptorProto_Type.TYPE_ENUM:
182
- return 14;
183
- case FieldDescriptorProto_Type.TYPE_SFIXED32:
184
- return 15;
185
- case FieldDescriptorProto_Type.TYPE_SFIXED64:
186
- return 16;
187
- case FieldDescriptorProto_Type.TYPE_SINT32:
188
- return 17;
189
- case FieldDescriptorProto_Type.TYPE_SINT64:
190
- return 18;
191
- default:
192
- return 0;
193
- }
194
- }
195
153
  export var FieldDescriptorProto_Label;
196
154
  (function (FieldDescriptorProto_Label) {
197
155
  /** LABEL_OPTIONAL - 0 is reserved for errors */
198
- FieldDescriptorProto_Label["LABEL_OPTIONAL"] = "LABEL_OPTIONAL";
199
- FieldDescriptorProto_Label["LABEL_REQUIRED"] = "LABEL_REQUIRED";
200
- FieldDescriptorProto_Label["LABEL_REPEATED"] = "LABEL_REPEATED";
201
- FieldDescriptorProto_Label["UNRECOGNIZED"] = "UNRECOGNIZED";
156
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
157
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
158
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
159
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
202
160
  })(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
203
161
  export function fieldDescriptorProto_LabelFromJSON(object) {
204
162
  switch (object) {
@@ -229,28 +187,16 @@ export function fieldDescriptorProto_LabelToJSON(object) {
229
187
  return "UNKNOWN";
230
188
  }
231
189
  }
232
- export function fieldDescriptorProto_LabelToNumber(object) {
233
- switch (object) {
234
- case FieldDescriptorProto_Label.LABEL_OPTIONAL:
235
- return 1;
236
- case FieldDescriptorProto_Label.LABEL_REQUIRED:
237
- return 2;
238
- case FieldDescriptorProto_Label.LABEL_REPEATED:
239
- return 3;
240
- default:
241
- return 0;
242
- }
243
- }
244
190
  /** Generated classes can be optimized for speed or code size. */
245
191
  export var FileOptions_OptimizeMode;
246
192
  (function (FileOptions_OptimizeMode) {
247
193
  /** SPEED - Generate complete code for parsing, serialization, */
248
- FileOptions_OptimizeMode["SPEED"] = "SPEED";
194
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED";
249
195
  /** CODE_SIZE - etc. */
250
- FileOptions_OptimizeMode["CODE_SIZE"] = "CODE_SIZE";
196
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
251
197
  /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
252
- FileOptions_OptimizeMode["LITE_RUNTIME"] = "LITE_RUNTIME";
253
- FileOptions_OptimizeMode["UNRECOGNIZED"] = "UNRECOGNIZED";
198
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
199
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
254
200
  })(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {}));
255
201
  export function fileOptions_OptimizeModeFromJSON(object) {
256
202
  switch (object) {
@@ -281,25 +227,13 @@ export function fileOptions_OptimizeModeToJSON(object) {
281
227
  return "UNKNOWN";
282
228
  }
283
229
  }
284
- export function fileOptions_OptimizeModeToNumber(object) {
285
- switch (object) {
286
- case FileOptions_OptimizeMode.SPEED:
287
- return 1;
288
- case FileOptions_OptimizeMode.CODE_SIZE:
289
- return 2;
290
- case FileOptions_OptimizeMode.LITE_RUNTIME:
291
- return 3;
292
- default:
293
- return 0;
294
- }
295
- }
296
230
  export var FieldOptions_CType;
297
231
  (function (FieldOptions_CType) {
298
232
  /** STRING - Default mode. */
299
- FieldOptions_CType["STRING"] = "STRING";
300
- FieldOptions_CType["CORD"] = "CORD";
301
- FieldOptions_CType["STRING_PIECE"] = "STRING_PIECE";
302
- FieldOptions_CType["UNRECOGNIZED"] = "UNRECOGNIZED";
233
+ FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
234
+ FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
235
+ FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
236
+ FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
303
237
  })(FieldOptions_CType || (FieldOptions_CType = {}));
304
238
  export function fieldOptions_CTypeFromJSON(object) {
305
239
  switch (object) {
@@ -330,27 +264,15 @@ export function fieldOptions_CTypeToJSON(object) {
330
264
  return "UNKNOWN";
331
265
  }
332
266
  }
333
- export function fieldOptions_CTypeToNumber(object) {
334
- switch (object) {
335
- case FieldOptions_CType.STRING:
336
- return 0;
337
- case FieldOptions_CType.CORD:
338
- return 1;
339
- case FieldOptions_CType.STRING_PIECE:
340
- return 2;
341
- default:
342
- return 0;
343
- }
344
- }
345
267
  export var FieldOptions_JSType;
346
268
  (function (FieldOptions_JSType) {
347
269
  /** JS_NORMAL - Use the default type. */
348
- FieldOptions_JSType["JS_NORMAL"] = "JS_NORMAL";
270
+ FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
349
271
  /** JS_STRING - Use JavaScript strings. */
350
- FieldOptions_JSType["JS_STRING"] = "JS_STRING";
272
+ FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING";
351
273
  /** JS_NUMBER - Use JavaScript numbers. */
352
- FieldOptions_JSType["JS_NUMBER"] = "JS_NUMBER";
353
- FieldOptions_JSType["UNRECOGNIZED"] = "UNRECOGNIZED";
274
+ FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
275
+ FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
354
276
  })(FieldOptions_JSType || (FieldOptions_JSType = {}));
355
277
  export function fieldOptions_JSTypeFromJSON(object) {
356
278
  switch (object) {
@@ -381,18 +303,6 @@ export function fieldOptions_JSTypeToJSON(object) {
381
303
  return "UNKNOWN";
382
304
  }
383
305
  }
384
- export function fieldOptions_JSTypeToNumber(object) {
385
- switch (object) {
386
- case FieldOptions_JSType.JS_NORMAL:
387
- return 0;
388
- case FieldOptions_JSType.JS_STRING:
389
- return 1;
390
- case FieldOptions_JSType.JS_NUMBER:
391
- return 2;
392
- default:
393
- return 0;
394
- }
395
- }
396
306
  /**
397
307
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
398
308
  * or neither? HTTP based RPC implementation may choose GET verb for safe
@@ -400,12 +310,12 @@ export function fieldOptions_JSTypeToNumber(object) {
400
310
  */
401
311
  export var MethodOptions_IdempotencyLevel;
402
312
  (function (MethodOptions_IdempotencyLevel) {
403
- MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN";
313
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN";
404
314
  /** NO_SIDE_EFFECTS - implies idempotent */
405
- MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS";
315
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS";
406
316
  /** IDEMPOTENT - idempotent, but may have side effects */
407
- MethodOptions_IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT";
408
- MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = "UNRECOGNIZED";
317
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
318
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
409
319
  })(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {}));
410
320
  export function methodOptions_IdempotencyLevelFromJSON(object) {
411
321
  switch (object) {
@@ -436,18 +346,6 @@ export function methodOptions_IdempotencyLevelToJSON(object) {
436
346
  return "UNKNOWN";
437
347
  }
438
348
  }
439
- export function methodOptions_IdempotencyLevelToNumber(object) {
440
- switch (object) {
441
- case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:
442
- return 0;
443
- case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:
444
- return 1;
445
- case MethodOptions_IdempotencyLevel.IDEMPOTENT:
446
- return 2;
447
- default:
448
- return 0;
449
- }
450
- }
451
349
  function createBaseFileDescriptorSet() {
452
350
  return { file: [] };
453
351
  }
@@ -1081,8 +979,8 @@ function createBaseFieldDescriptorProto() {
1081
979
  return {
1082
980
  name: "",
1083
981
  number: 0,
1084
- label: FieldDescriptorProto_Label.LABEL_OPTIONAL,
1085
- type: FieldDescriptorProto_Type.TYPE_DOUBLE,
982
+ label: 1,
983
+ type: 1,
1086
984
  typeName: "",
1087
985
  extendee: "",
1088
986
  defaultValue: "",
@@ -1100,11 +998,11 @@ export const FieldDescriptorProto = {
1100
998
  if (message.number !== 0) {
1101
999
  writer.uint32(24).int32(message.number);
1102
1000
  }
1103
- if (message.label !== FieldDescriptorProto_Label.LABEL_OPTIONAL) {
1104
- writer.uint32(32).int32(fieldDescriptorProto_LabelToNumber(message.label));
1001
+ if (message.label !== 1) {
1002
+ writer.uint32(32).int32(message.label);
1105
1003
  }
1106
- if (message.type !== FieldDescriptorProto_Type.TYPE_DOUBLE) {
1107
- writer.uint32(40).int32(fieldDescriptorProto_TypeToNumber(message.type));
1004
+ if (message.type !== 1) {
1005
+ writer.uint32(40).int32(message.type);
1108
1006
  }
1109
1007
  if (message.typeName !== "") {
1110
1008
  writer.uint32(50).string(message.typeName);
@@ -1143,10 +1041,10 @@ export const FieldDescriptorProto = {
1143
1041
  message.number = reader.int32();
1144
1042
  break;
1145
1043
  case 4:
1146
- message.label = fieldDescriptorProto_LabelFromJSON(reader.int32());
1044
+ message.label = reader.int32();
1147
1045
  break;
1148
1046
  case 5:
1149
- message.type = fieldDescriptorProto_TypeFromJSON(reader.int32());
1047
+ message.type = reader.int32();
1150
1048
  break;
1151
1049
  case 6:
1152
1050
  message.typeName = reader.string();
@@ -1180,10 +1078,8 @@ export const FieldDescriptorProto = {
1180
1078
  return {
1181
1079
  name: isSet(object.name) ? String(object.name) : "",
1182
1080
  number: isSet(object.number) ? Number(object.number) : 0,
1183
- label: isSet(object.label)
1184
- ? fieldDescriptorProto_LabelFromJSON(object.label)
1185
- : FieldDescriptorProto_Label.LABEL_OPTIONAL,
1186
- type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : FieldDescriptorProto_Type.TYPE_DOUBLE,
1081
+ label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : 1,
1082
+ type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : 1,
1187
1083
  typeName: isSet(object.typeName) ? String(object.typeName) : "",
1188
1084
  extendee: isSet(object.extendee) ? String(object.extendee) : "",
1189
1085
  defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "",
@@ -1213,8 +1109,8 @@ export const FieldDescriptorProto = {
1213
1109
  const message = createBaseFieldDescriptorProto();
1214
1110
  message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
1215
1111
  message.number = (_b = object.number) !== null && _b !== void 0 ? _b : 0;
1216
- message.label = (_c = object.label) !== null && _c !== void 0 ? _c : FieldDescriptorProto_Label.LABEL_OPTIONAL;
1217
- message.type = (_d = object.type) !== null && _d !== void 0 ? _d : FieldDescriptorProto_Type.TYPE_DOUBLE;
1112
+ message.label = (_c = object.label) !== null && _c !== void 0 ? _c : 1;
1113
+ message.type = (_d = object.type) !== null && _d !== void 0 ? _d : 1;
1218
1114
  message.typeName = (_e = object.typeName) !== null && _e !== void 0 ? _e : "";
1219
1115
  message.extendee = (_f = object.extendee) !== null && _f !== void 0 ? _f : "";
1220
1116
  message.defaultValue = (_g = object.defaultValue) !== null && _g !== void 0 ? _g : "";
@@ -1672,7 +1568,7 @@ function createBaseFileOptions() {
1672
1568
  javaMultipleFiles: false,
1673
1569
  javaGenerateEqualsAndHash: false,
1674
1570
  javaStringCheckUtf8: false,
1675
- optimizeFor: FileOptions_OptimizeMode.SPEED,
1571
+ optimizeFor: 1,
1676
1572
  goPackage: "",
1677
1573
  ccGenericServices: false,
1678
1574
  javaGenericServices: false,
@@ -1707,8 +1603,8 @@ export const FileOptions = {
1707
1603
  if (message.javaStringCheckUtf8 === true) {
1708
1604
  writer.uint32(216).bool(message.javaStringCheckUtf8);
1709
1605
  }
1710
- if (message.optimizeFor !== FileOptions_OptimizeMode.SPEED) {
1711
- writer.uint32(72).int32(fileOptions_OptimizeModeToNumber(message.optimizeFor));
1606
+ if (message.optimizeFor !== 1) {
1607
+ writer.uint32(72).int32(message.optimizeFor);
1712
1608
  }
1713
1609
  if (message.goPackage !== "") {
1714
1610
  writer.uint32(90).string(message.goPackage);
@@ -1780,7 +1676,7 @@ export const FileOptions = {
1780
1676
  message.javaStringCheckUtf8 = reader.bool();
1781
1677
  break;
1782
1678
  case 9:
1783
- message.optimizeFor = fileOptions_OptimizeModeFromJSON(reader.int32());
1679
+ message.optimizeFor = reader.int32();
1784
1680
  break;
1785
1681
  case 11:
1786
1682
  message.goPackage = reader.string();
@@ -1843,9 +1739,7 @@ export const FileOptions = {
1843
1739
  ? Boolean(object.javaGenerateEqualsAndHash)
1844
1740
  : false,
1845
1741
  javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? Boolean(object.javaStringCheckUtf8) : false,
1846
- optimizeFor: isSet(object.optimizeFor)
1847
- ? fileOptions_OptimizeModeFromJSON(object.optimizeFor)
1848
- : FileOptions_OptimizeMode.SPEED,
1742
+ optimizeFor: isSet(object.optimizeFor) ? fileOptions_OptimizeModeFromJSON(object.optimizeFor) : 1,
1849
1743
  goPackage: isSet(object.goPackage) ? String(object.goPackage) : "",
1850
1744
  ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false,
1851
1745
  javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false,
@@ -1904,7 +1798,7 @@ export const FileOptions = {
1904
1798
  message.javaMultipleFiles = (_c = object.javaMultipleFiles) !== null && _c !== void 0 ? _c : false;
1905
1799
  message.javaGenerateEqualsAndHash = (_d = object.javaGenerateEqualsAndHash) !== null && _d !== void 0 ? _d : false;
1906
1800
  message.javaStringCheckUtf8 = (_e = object.javaStringCheckUtf8) !== null && _e !== void 0 ? _e : false;
1907
- message.optimizeFor = (_f = object.optimizeFor) !== null && _f !== void 0 ? _f : FileOptions_OptimizeMode.SPEED;
1801
+ message.optimizeFor = (_f = object.optimizeFor) !== null && _f !== void 0 ? _f : 1;
1908
1802
  message.goPackage = (_g = object.goPackage) !== null && _g !== void 0 ? _g : "";
1909
1803
  message.ccGenericServices = (_h = object.ccGenericServices) !== null && _h !== void 0 ? _h : false;
1910
1804
  message.javaGenericServices = (_j = object.javaGenericServices) !== null && _j !== void 0 ? _j : false;
@@ -2020,26 +1914,18 @@ export const MessageOptions = {
2020
1914
  },
2021
1915
  };
2022
1916
  function createBaseFieldOptions() {
2023
- return {
2024
- ctype: FieldOptions_CType.STRING,
2025
- packed: false,
2026
- jstype: FieldOptions_JSType.JS_NORMAL,
2027
- lazy: false,
2028
- deprecated: false,
2029
- weak: false,
2030
- uninterpretedOption: [],
2031
- };
1917
+ return { ctype: 0, packed: false, jstype: 0, lazy: false, deprecated: false, weak: false, uninterpretedOption: [] };
2032
1918
  }
2033
1919
  export const FieldOptions = {
2034
1920
  encode(message, writer = _m0.Writer.create()) {
2035
- if (message.ctype !== FieldOptions_CType.STRING) {
2036
- writer.uint32(8).int32(fieldOptions_CTypeToNumber(message.ctype));
1921
+ if (message.ctype !== 0) {
1922
+ writer.uint32(8).int32(message.ctype);
2037
1923
  }
2038
1924
  if (message.packed === true) {
2039
1925
  writer.uint32(16).bool(message.packed);
2040
1926
  }
2041
- if (message.jstype !== FieldOptions_JSType.JS_NORMAL) {
2042
- writer.uint32(48).int32(fieldOptions_JSTypeToNumber(message.jstype));
1927
+ if (message.jstype !== 0) {
1928
+ writer.uint32(48).int32(message.jstype);
2043
1929
  }
2044
1930
  if (message.lazy === true) {
2045
1931
  writer.uint32(40).bool(message.lazy);
@@ -2063,13 +1949,13 @@ export const FieldOptions = {
2063
1949
  const tag = reader.uint32();
2064
1950
  switch (tag >>> 3) {
2065
1951
  case 1:
2066
- message.ctype = fieldOptions_CTypeFromJSON(reader.int32());
1952
+ message.ctype = reader.int32();
2067
1953
  break;
2068
1954
  case 2:
2069
1955
  message.packed = reader.bool();
2070
1956
  break;
2071
1957
  case 6:
2072
- message.jstype = fieldOptions_JSTypeFromJSON(reader.int32());
1958
+ message.jstype = reader.int32();
2073
1959
  break;
2074
1960
  case 5:
2075
1961
  message.lazy = reader.bool();
@@ -2092,9 +1978,9 @@ export const FieldOptions = {
2092
1978
  },
2093
1979
  fromJSON(object) {
2094
1980
  return {
2095
- ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : FieldOptions_CType.STRING,
1981
+ ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0,
2096
1982
  packed: isSet(object.packed) ? Boolean(object.packed) : false,
2097
- jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : FieldOptions_JSType.JS_NORMAL,
1983
+ jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0,
2098
1984
  lazy: isSet(object.lazy) ? Boolean(object.lazy) : false,
2099
1985
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2100
1986
  weak: isSet(object.weak) ? Boolean(object.weak) : false,
@@ -2122,9 +2008,9 @@ export const FieldOptions = {
2122
2008
  fromPartial(object) {
2123
2009
  var _a, _b, _c, _d, _e, _f, _g;
2124
2010
  const message = createBaseFieldOptions();
2125
- message.ctype = (_a = object.ctype) !== null && _a !== void 0 ? _a : FieldOptions_CType.STRING;
2011
+ message.ctype = (_a = object.ctype) !== null && _a !== void 0 ? _a : 0;
2126
2012
  message.packed = (_b = object.packed) !== null && _b !== void 0 ? _b : false;
2127
- message.jstype = (_c = object.jstype) !== null && _c !== void 0 ? _c : FieldOptions_JSType.JS_NORMAL;
2013
+ message.jstype = (_c = object.jstype) !== null && _c !== void 0 ? _c : 0;
2128
2014
  message.lazy = (_d = object.lazy) !== null && _d !== void 0 ? _d : false;
2129
2015
  message.deprecated = (_e = object.deprecated) !== null && _e !== void 0 ? _e : false;
2130
2016
  message.weak = (_f = object.weak) !== null && _f !== void 0 ? _f : false;
@@ -2373,19 +2259,15 @@ export const ServiceOptions = {
2373
2259
  },
2374
2260
  };
2375
2261
  function createBaseMethodOptions() {
2376
- return {
2377
- deprecated: false,
2378
- idempotencyLevel: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
2379
- uninterpretedOption: [],
2380
- };
2262
+ return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
2381
2263
  }
2382
2264
  export const MethodOptions = {
2383
2265
  encode(message, writer = _m0.Writer.create()) {
2384
2266
  if (message.deprecated === true) {
2385
2267
  writer.uint32(264).bool(message.deprecated);
2386
2268
  }
2387
- if (message.idempotencyLevel !== MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN) {
2388
- writer.uint32(272).int32(methodOptions_IdempotencyLevelToNumber(message.idempotencyLevel));
2269
+ if (message.idempotencyLevel !== 0) {
2270
+ writer.uint32(272).int32(message.idempotencyLevel);
2389
2271
  }
2390
2272
  for (const v of message.uninterpretedOption) {
2391
2273
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
@@ -2403,7 +2285,7 @@ export const MethodOptions = {
2403
2285
  message.deprecated = reader.bool();
2404
2286
  break;
2405
2287
  case 34:
2406
- message.idempotencyLevel = methodOptions_IdempotencyLevelFromJSON(reader.int32());
2288
+ message.idempotencyLevel = reader.int32();
2407
2289
  break;
2408
2290
  case 999:
2409
2291
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
@@ -2420,7 +2302,7 @@ export const MethodOptions = {
2420
2302
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2421
2303
  idempotencyLevel: isSet(object.idempotencyLevel)
2422
2304
  ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
2423
- : MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
2305
+ : 0,
2424
2306
  uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
2425
2307
  ? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
2426
2308
  : [],
@@ -2443,7 +2325,7 @@ export const MethodOptions = {
2443
2325
  var _a, _b, _c;
2444
2326
  const message = createBaseMethodOptions();
2445
2327
  message.deprecated = (_a = object.deprecated) !== null && _a !== void 0 ? _a : false;
2446
- message.idempotencyLevel = (_b = object.idempotencyLevel) !== null && _b !== void 0 ? _b : MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
2328
+ message.idempotencyLevel = (_b = object.idempotencyLevel) !== null && _b !== void 0 ? _b : 0;
2447
2329
  message.uninterpretedOption = ((_c = object.uninterpretedOption) === null || _c === void 0 ? void 0 : _c.map((e) => UninterpretedOption.fromPartial(e))) || [];
2448
2330
  return message;
2449
2331
  },