crashlytics.nanopb.c 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright 2019 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* Automatically generated nanopb constant definitions */
  17. /* Generated by nanopb-0.3.9.7 */
  18. #include "Crashlytics/Protogen/nanopb/crashlytics.nanopb.h"
  19. /* @@protoc_insertion_point(includes) */
  20. #if PB_PROTO_HEADER_VERSION != 30
  21. #error Regenerate this file with the current version of nanopb generator.
  22. #endif
  23. const pb_field_t google_crashlytics_Report_fields[8] = {
  24. PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, google_crashlytics_Report, sdk_version, sdk_version, 0),
  25. PB_FIELD( 3, BYTES , SINGULAR, POINTER , OTHER, google_crashlytics_Report, gmp_app_id, sdk_version, 0),
  26. PB_FIELD( 4, UENUM , SINGULAR, STATIC , OTHER, google_crashlytics_Report, platform, gmp_app_id, 0),
  27. PB_FIELD( 5, BYTES , SINGULAR, POINTER , OTHER, google_crashlytics_Report, installation_uuid, platform, 0),
  28. PB_FIELD( 6, BYTES , SINGULAR, POINTER , OTHER, google_crashlytics_Report, build_version, installation_uuid, 0),
  29. PB_FIELD( 7, BYTES , SINGULAR, POINTER , OTHER, google_crashlytics_Report, display_version, build_version, 0),
  30. PB_FIELD( 10, MESSAGE , SINGULAR, STATIC , OTHER, google_crashlytics_Report, apple_payload, display_version, &google_crashlytics_FilesPayload_fields),
  31. PB_LAST_FIELD
  32. };
  33. const pb_field_t google_crashlytics_FilesPayload_fields[2] = {
  34. PB_FIELD( 1, MESSAGE , REPEATED, POINTER , FIRST, google_crashlytics_FilesPayload, files, files, &google_crashlytics_FilesPayload_File_fields),
  35. PB_LAST_FIELD
  36. };
  37. const pb_field_t google_crashlytics_FilesPayload_File_fields[3] = {
  38. PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, google_crashlytics_FilesPayload_File, filename, filename, 0),
  39. PB_FIELD( 2, BYTES , SINGULAR, POINTER , OTHER, google_crashlytics_FilesPayload_File, contents, filename, 0),
  40. PB_LAST_FIELD
  41. };
  42. /* Check that field information fits in pb_field_t */
  43. #if !defined(PB_FIELD_32BIT)
  44. /* If you get an error here, it means that you need to define PB_FIELD_32BIT
  45. * compile-time option. You can do that in pb.h or on compiler command line.
  46. *
  47. * The reason you need to do this is that some of your messages contain tag
  48. * numbers or field sizes that are larger than what can fit in 8 or 16 bit
  49. * field descriptors.
  50. */
  51. PB_STATIC_ASSERT((pb_membersize(google_crashlytics_Report, apple_payload) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_crashlytics_Report_google_crashlytics_FilesPayload_google_crashlytics_FilesPayload_File)
  52. #endif
  53. #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
  54. /* If you get an error here, it means that you need to define PB_FIELD_16BIT
  55. * compile-time option. You can do that in pb.h or on compiler command line.
  56. *
  57. * The reason you need to do this is that some of your messages contain tag
  58. * numbers or field sizes that are larger than what can fit in the default
  59. * 8 bit descriptors.
  60. */
  61. PB_STATIC_ASSERT((pb_membersize(google_crashlytics_Report, apple_payload) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_crashlytics_Report_google_crashlytics_FilesPayload_google_crashlytics_FilesPayload_File)
  62. #endif
  63. /* @@protoc_insertion_point(eof) */