perf_metric.nanopb.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. /*
  2. * Copyright 2021 Google LLC
  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.8 */
  18. #include "FirebasePerformance/Sources/Protogen/nanopb/perf_metric.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 firebase_perf_v1_NetworkConnectionInfo_NetworkType firebase_perf_v1_NetworkConnectionInfo_network_type_default = firebase_perf_v1_NetworkConnectionInfo_NetworkType_NONE;
  24. const firebase_perf_v1_NetworkConnectionInfo_MobileSubtype firebase_perf_v1_NetworkConnectionInfo_mobile_subtype_default = firebase_perf_v1_NetworkConnectionInfo_MobileSubtype_UNKNOWN_MOBILE_SUBTYPE;
  25. const pb_field_t firebase_perf_v1_PerfMetric_fields[6] = {
  26. PB_FIELD( 1, MESSAGE , OPTIONAL, STATIC , FIRST, firebase_perf_v1_PerfMetric, application_info, application_info, &firebase_perf_v1_ApplicationInfo_fields),
  27. PB_FIELD( 2, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_PerfMetric, trace_metric, application_info, &firebase_perf_v1_TraceMetric_fields),
  28. PB_FIELD( 3, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_PerfMetric, network_request_metric, trace_metric, &firebase_perf_v1_NetworkRequestMetric_fields),
  29. PB_FIELD( 4, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_PerfMetric, gauge_metric, network_request_metric, &firebase_perf_v1_GaugeMetric_fields),
  30. PB_FIELD( 5, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_PerfMetric, transport_info, gauge_metric, &firebase_perf_v1_TransportInfo_fields),
  31. PB_LAST_FIELD
  32. };
  33. const pb_field_t firebase_perf_v1_TraceMetric_fields[9] = {
  34. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_TraceMetric, name, name, 0),
  35. PB_FIELD( 2, BOOL , OPTIONAL, STATIC , OTHER, firebase_perf_v1_TraceMetric, is_auto, name, 0),
  36. PB_FIELD( 4, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_TraceMetric, client_start_time_us, is_auto, 0),
  37. PB_FIELD( 5, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_TraceMetric, duration_us, client_start_time_us, 0),
  38. PB_FIELD( 6, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_TraceMetric, counters, duration_us, &firebase_perf_v1_TraceMetric_CountersEntry_fields),
  39. PB_FIELD( 7, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_TraceMetric, subtraces, counters, &firebase_perf_v1_TraceMetric_fields),
  40. PB_FIELD( 8, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_TraceMetric, custom_attributes, subtraces, &firebase_perf_v1_TraceMetric_CustomAttributesEntry_fields),
  41. PB_FIELD( 9, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_TraceMetric, perf_sessions, custom_attributes, &firebase_perf_v1_PerfSession_fields),
  42. PB_LAST_FIELD
  43. };
  44. const pb_field_t firebase_perf_v1_TraceMetric_CountersEntry_fields[3] = {
  45. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_TraceMetric_CountersEntry, key, key, 0),
  46. PB_FIELD( 2, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_TraceMetric_CountersEntry, value, key, 0),
  47. PB_LAST_FIELD
  48. };
  49. const pb_field_t firebase_perf_v1_TraceMetric_CustomAttributesEntry_fields[3] = {
  50. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_TraceMetric_CustomAttributesEntry, key, key, 0),
  51. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_TraceMetric_CustomAttributesEntry, value, key, 0),
  52. PB_LAST_FIELD
  53. };
  54. const pb_field_t firebase_perf_v1_NetworkRequestMetric_fields[14] = {
  55. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_NetworkRequestMetric, url, url, 0),
  56. PB_FIELD( 2, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, http_method, url, 0),
  57. PB_FIELD( 3, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, request_payload_bytes, http_method, 0),
  58. PB_FIELD( 4, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, response_payload_bytes, request_payload_bytes, 0),
  59. PB_FIELD( 5, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, http_response_code, response_payload_bytes, 0),
  60. PB_FIELD( 6, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_NetworkRequestMetric, response_content_type, http_response_code, 0),
  61. PB_FIELD( 7, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, client_start_time_us, response_content_type, 0),
  62. PB_FIELD( 8, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, time_to_request_completed_us, client_start_time_us, 0),
  63. PB_FIELD( 9, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, time_to_response_initiated_us, time_to_request_completed_us, 0),
  64. PB_FIELD( 10, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, time_to_response_completed_us, time_to_response_initiated_us, 0),
  65. PB_FIELD( 11, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkRequestMetric, network_client_error_reason, time_to_response_completed_us, 0),
  66. PB_FIELD( 12, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_NetworkRequestMetric, custom_attributes, network_client_error_reason, &firebase_perf_v1_NetworkRequestMetric_CustomAttributesEntry_fields),
  67. PB_FIELD( 13, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_NetworkRequestMetric, perf_sessions, custom_attributes, &firebase_perf_v1_PerfSession_fields),
  68. PB_LAST_FIELD
  69. };
  70. const pb_field_t firebase_perf_v1_NetworkRequestMetric_CustomAttributesEntry_fields[3] = {
  71. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_NetworkRequestMetric_CustomAttributesEntry, key, key, 0),
  72. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_NetworkRequestMetric_CustomAttributesEntry, value, key, 0),
  73. PB_LAST_FIELD
  74. };
  75. const pb_field_t firebase_perf_v1_PerfSession_fields[3] = {
  76. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_PerfSession, session_id, session_id, 0),
  77. PB_FIELD( 2, UENUM , REPEATED, POINTER , OTHER, firebase_perf_v1_PerfSession, session_verbosity, session_id, 0),
  78. PB_LAST_FIELD
  79. };
  80. const pb_field_t firebase_perf_v1_GaugeMetric_fields[6] = {
  81. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_GaugeMetric, session_id, session_id, 0),
  82. PB_FIELD( 2, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_GaugeMetric, cpu_metric_readings, session_id, &firebase_perf_v1_CpuMetricReading_fields),
  83. PB_FIELD( 3, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_GaugeMetric, gauge_metadata, cpu_metric_readings, &firebase_perf_v1_GaugeMetadata_fields),
  84. PB_FIELD( 4, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_GaugeMetric, android_memory_readings, gauge_metadata, &firebase_perf_v1_AndroidMemoryReading_fields),
  85. PB_FIELD( 5, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_GaugeMetric, ios_memory_readings, android_memory_readings, &firebase_perf_v1_IosMemoryReading_fields),
  86. PB_LAST_FIELD
  87. };
  88. const pb_field_t firebase_perf_v1_CpuMetricReading_fields[4] = {
  89. PB_FIELD( 1, INT64 , OPTIONAL, STATIC , FIRST, firebase_perf_v1_CpuMetricReading, client_time_us, client_time_us, 0),
  90. PB_FIELD( 2, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_CpuMetricReading, user_time_us, client_time_us, 0),
  91. PB_FIELD( 3, INT64 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_CpuMetricReading, system_time_us, user_time_us, 0),
  92. PB_LAST_FIELD
  93. };
  94. const pb_field_t firebase_perf_v1_IosMemoryReading_fields[4] = {
  95. PB_FIELD( 1, INT64 , OPTIONAL, STATIC , FIRST, firebase_perf_v1_IosMemoryReading, client_time_us, client_time_us, 0),
  96. PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_IosMemoryReading, used_app_heap_memory_kb, client_time_us, 0),
  97. PB_FIELD( 3, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_IosMemoryReading, free_app_heap_memory_kb, used_app_heap_memory_kb, 0),
  98. PB_LAST_FIELD
  99. };
  100. const pb_field_t firebase_perf_v1_AndroidMemoryReading_fields[3] = {
  101. PB_FIELD( 1, INT64 , OPTIONAL, STATIC , FIRST, firebase_perf_v1_AndroidMemoryReading, client_time_us, client_time_us, 0),
  102. PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_AndroidMemoryReading, used_app_java_heap_memory_kb, client_time_us, 0),
  103. PB_LAST_FIELD
  104. };
  105. const pb_field_t firebase_perf_v1_GaugeMetadata_fields[7] = {
  106. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_GaugeMetadata, process_name, process_name, 0),
  107. PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_GaugeMetadata, cpu_clock_rate_khz, process_name, 0),
  108. PB_FIELD( 3, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_GaugeMetadata, device_ram_size_kb, cpu_clock_rate_khz, 0),
  109. PB_FIELD( 4, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_GaugeMetadata, max_app_java_heap_memory_kb, device_ram_size_kb, 0),
  110. PB_FIELD( 5, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_GaugeMetadata, max_encouraged_app_java_heap_memory_kb, max_app_java_heap_memory_kb, 0),
  111. PB_FIELD( 6, INT32 , OPTIONAL, STATIC , OTHER, firebase_perf_v1_GaugeMetadata, cpu_processor_count, max_encouraged_app_java_heap_memory_kb, 0),
  112. PB_LAST_FIELD
  113. };
  114. const pb_field_t firebase_perf_v1_ApplicationInfo_fields[8] = {
  115. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_ApplicationInfo, google_app_id, google_app_id, 0),
  116. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_ApplicationInfo, app_instance_id, google_app_id, 0),
  117. PB_FIELD( 3, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_ApplicationInfo, android_app_info, app_instance_id, &firebase_perf_v1_AndroidApplicationInfo_fields),
  118. PB_FIELD( 4, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_ApplicationInfo, ios_app_info, android_app_info, &firebase_perf_v1_IosApplicationInfo_fields),
  119. PB_FIELD( 5, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_ApplicationInfo, application_process_state, ios_app_info, 0),
  120. PB_FIELD( 6, MESSAGE , REPEATED, POINTER , OTHER, firebase_perf_v1_ApplicationInfo, custom_attributes, application_process_state, &firebase_perf_v1_ApplicationInfo_CustomAttributesEntry_fields),
  121. PB_FIELD( 7, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_ApplicationInfo, web_app_info, custom_attributes, &firebase_perf_v1_WebApplicationInfo_fields),
  122. PB_LAST_FIELD
  123. };
  124. const pb_field_t firebase_perf_v1_ApplicationInfo_CustomAttributesEntry_fields[3] = {
  125. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_ApplicationInfo_CustomAttributesEntry, key, key, 0),
  126. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_ApplicationInfo_CustomAttributesEntry, value, key, 0),
  127. PB_LAST_FIELD
  128. };
  129. const pb_field_t firebase_perf_v1_WebApplicationInfo_fields[6] = {
  130. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_WebApplicationInfo, sdk_version, sdk_version, 0),
  131. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_WebApplicationInfo, page_url, sdk_version, 0),
  132. PB_FIELD( 3, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_WebApplicationInfo, service_worker_status, page_url, 0),
  133. PB_FIELD( 4, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_WebApplicationInfo, visibility_state, service_worker_status, 0),
  134. PB_FIELD( 5, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_WebApplicationInfo, effective_connection_type, visibility_state, 0),
  135. PB_LAST_FIELD
  136. };
  137. const pb_field_t firebase_perf_v1_AndroidApplicationInfo_fields[4] = {
  138. PB_FIELD( 1, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_AndroidApplicationInfo, package_name, package_name, 0),
  139. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_AndroidApplicationInfo, sdk_version, package_name, 0),
  140. PB_FIELD( 3, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_AndroidApplicationInfo, version_name, sdk_version, 0),
  141. PB_LAST_FIELD
  142. };
  143. const pb_field_t firebase_perf_v1_NetworkConnectionInfo_fields[3] = {
  144. PB_FIELD( 1, ENUM , OPTIONAL, STATIC , FIRST, firebase_perf_v1_NetworkConnectionInfo, network_type, network_type, &firebase_perf_v1_NetworkConnectionInfo_network_type_default),
  145. PB_FIELD( 2, UENUM , OPTIONAL, STATIC , OTHER, firebase_perf_v1_NetworkConnectionInfo, mobile_subtype, network_type, &firebase_perf_v1_NetworkConnectionInfo_mobile_subtype_default),
  146. PB_LAST_FIELD
  147. };
  148. const pb_field_t firebase_perf_v1_IosApplicationInfo_fields[5] = {
  149. PB_FIELD( 2, BYTES , OPTIONAL, POINTER , FIRST, firebase_perf_v1_IosApplicationInfo, sdk_version, sdk_version, 0),
  150. PB_FIELD( 3, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_IosApplicationInfo, bundle_short_version, sdk_version, 0),
  151. PB_FIELD( 4, BYTES , OPTIONAL, POINTER , OTHER, firebase_perf_v1_IosApplicationInfo, mcc_mnc, bundle_short_version, 0),
  152. PB_FIELD( 5, MESSAGE , OPTIONAL, STATIC , OTHER, firebase_perf_v1_IosApplicationInfo, network_connection_info, mcc_mnc, &firebase_perf_v1_NetworkConnectionInfo_fields),
  153. PB_LAST_FIELD
  154. };
  155. const pb_field_t firebase_perf_v1_TransportInfo_fields[2] = {
  156. PB_FIELD( 1, UENUM , OPTIONAL, STATIC , FIRST, firebase_perf_v1_TransportInfo, dispatch_destination, dispatch_destination, 0),
  157. PB_LAST_FIELD
  158. };
  159. /* Check that field information fits in pb_field_t */
  160. #if !defined(PB_FIELD_32BIT)
  161. /* If you get an error here, it means that you need to define PB_FIELD_32BIT
  162. * compile-time option. You can do that in pb.h or on compiler command line.
  163. *
  164. * The reason you need to do this is that some of your messages contain tag
  165. * numbers or field sizes that are larger than what can fit in 8 or 16 bit
  166. * field descriptors.
  167. */
  168. PB_STATIC_ASSERT((pb_membersize(firebase_perf_v1_PerfMetric, application_info) < 65536 && pb_membersize(firebase_perf_v1_PerfMetric, trace_metric) < 65536 && pb_membersize(firebase_perf_v1_PerfMetric, network_request_metric) < 65536 && pb_membersize(firebase_perf_v1_PerfMetric, gauge_metric) < 65536 && pb_membersize(firebase_perf_v1_PerfMetric, transport_info) < 65536 && pb_membersize(firebase_perf_v1_GaugeMetric, gauge_metadata) < 65536 && pb_membersize(firebase_perf_v1_ApplicationInfo, android_app_info) < 65536 && pb_membersize(firebase_perf_v1_ApplicationInfo, ios_app_info) < 65536 && pb_membersize(firebase_perf_v1_ApplicationInfo, web_app_info) < 65536 && pb_membersize(firebase_perf_v1_IosApplicationInfo, network_connection_info) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firebase_perf_v1_PerfMetric_firebase_perf_v1_TraceMetric_firebase_perf_v1_TraceMetric_CountersEntry_firebase_perf_v1_TraceMetric_CustomAttributesEntry_firebase_perf_v1_NetworkRequestMetric_firebase_perf_v1_NetworkRequestMetric_CustomAttributesEntry_firebase_perf_v1_PerfSession_firebase_perf_v1_GaugeMetric_firebase_perf_v1_CpuMetricReading_firebase_perf_v1_IosMemoryReading_firebase_perf_v1_AndroidMemoryReading_firebase_perf_v1_GaugeMetadata_firebase_perf_v1_ApplicationInfo_firebase_perf_v1_ApplicationInfo_CustomAttributesEntry_firebase_perf_v1_WebApplicationInfo_firebase_perf_v1_AndroidApplicationInfo_firebase_perf_v1_NetworkConnectionInfo_firebase_perf_v1_IosApplicationInfo_firebase_perf_v1_TransportInfo)
  169. #endif
  170. #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
  171. /* If you get an error here, it means that you need to define PB_FIELD_16BIT
  172. * compile-time option. You can do that in pb.h or on compiler command line.
  173. *
  174. * The reason you need to do this is that some of your messages contain tag
  175. * numbers or field sizes that are larger than what can fit in the default
  176. * 8 bit descriptors.
  177. */
  178. PB_STATIC_ASSERT((pb_membersize(firebase_perf_v1_PerfMetric, application_info) < 256 && pb_membersize(firebase_perf_v1_PerfMetric, trace_metric) < 256 && pb_membersize(firebase_perf_v1_PerfMetric, network_request_metric) < 256 && pb_membersize(firebase_perf_v1_PerfMetric, gauge_metric) < 256 && pb_membersize(firebase_perf_v1_PerfMetric, transport_info) < 256 && pb_membersize(firebase_perf_v1_GaugeMetric, gauge_metadata) < 256 && pb_membersize(firebase_perf_v1_ApplicationInfo, android_app_info) < 256 && pb_membersize(firebase_perf_v1_ApplicationInfo, ios_app_info) < 256 && pb_membersize(firebase_perf_v1_ApplicationInfo, web_app_info) < 256 && pb_membersize(firebase_perf_v1_IosApplicationInfo, network_connection_info) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firebase_perf_v1_PerfMetric_firebase_perf_v1_TraceMetric_firebase_perf_v1_TraceMetric_CountersEntry_firebase_perf_v1_TraceMetric_CustomAttributesEntry_firebase_perf_v1_NetworkRequestMetric_firebase_perf_v1_NetworkRequestMetric_CustomAttributesEntry_firebase_perf_v1_PerfSession_firebase_perf_v1_GaugeMetric_firebase_perf_v1_CpuMetricReading_firebase_perf_v1_IosMemoryReading_firebase_perf_v1_AndroidMemoryReading_firebase_perf_v1_GaugeMetadata_firebase_perf_v1_ApplicationInfo_firebase_perf_v1_ApplicationInfo_CustomAttributesEntry_firebase_perf_v1_WebApplicationInfo_firebase_perf_v1_AndroidApplicationInfo_firebase_perf_v1_NetworkConnectionInfo_firebase_perf_v1_IosApplicationInfo_firebase_perf_v1_TransportInfo)
  179. #endif
  180. /* @@protoc_insertion_point(eof) */