| // DO NOT EDIT. Autogenerated by Perfetto cppgen_plugin |
| #ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_TRACK_EVENT_CHROME_PROCESS_DESCRIPTOR_PROTO_CPP_H_ |
| #define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_TRACK_EVENT_CHROME_PROCESS_DESCRIPTOR_PROTO_CPP_H_ |
| |
| #include <stdint.h> |
| #include <bitset> |
| #include <vector> |
| #include <string> |
| #include <type_traits> |
| |
| #include "perfetto/protozero/cpp_message_obj.h" |
| #include "perfetto/protozero/copyable_ptr.h" |
| #include "perfetto/base/export.h" |
| |
| namespace perfetto { |
| namespace protos { |
| namespace gen { |
| class ChromeProcessDescriptor; |
| enum ChromeProcessDescriptor_ProcessType : int; |
| } // namespace perfetto |
| } // namespace protos |
| } // namespace gen |
| |
| namespace protozero { |
| class Message; |
| } // namespace protozero |
| |
| namespace perfetto { |
| namespace protos { |
| namespace gen { |
| enum ChromeProcessDescriptor_ProcessType : int { |
| ChromeProcessDescriptor_ProcessType_PROCESS_UNSPECIFIED = 0, |
| ChromeProcessDescriptor_ProcessType_PROCESS_BROWSER = 1, |
| ChromeProcessDescriptor_ProcessType_PROCESS_RENDERER = 2, |
| ChromeProcessDescriptor_ProcessType_PROCESS_UTILITY = 3, |
| ChromeProcessDescriptor_ProcessType_PROCESS_ZYGOTE = 4, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SANDBOX_HELPER = 5, |
| ChromeProcessDescriptor_ProcessType_PROCESS_GPU = 6, |
| ChromeProcessDescriptor_ProcessType_PROCESS_PPAPI_PLUGIN = 7, |
| ChromeProcessDescriptor_ProcessType_PROCESS_PPAPI_BROKER = 8, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_NETWORK = 9, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_TRACING = 10, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_STORAGE = 11, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_AUDIO = 12, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_DATA_DECODER = 13, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_UTIL_WIN = 14, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PROXY_RESOLVER = 15, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_CDM = 16, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_VIDEO_CAPTURE = 17, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_UNZIPPER = 18, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_MIRRORING = 19, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_FILEPATCHER = 20, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_TTS = 21, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PRINTING = 22, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_QUARANTINE = 23, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_CROS_LOCALSEARCH = 24, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_CROS_ASSISTANT_AUDIO_DECODER = 25, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_FILEUTIL = 26, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PRINTCOMPOSITOR = 27, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PAINTPREVIEW = 28, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SPEECHRECOGNITION = 29, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_XRDEVICE = 30, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_READICON = 31, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_LANGUAGEDETECTION = 32, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SHARING = 33, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_MEDIAPARSER = 34, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_QRCODEGENERATOR = 35, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PROFILEIMPORT = 36, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_IME = 37, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_RECORDING = 38, |
| ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SHAPEDETECTION = 39, |
| }; |
| |
| class PERFETTO_EXPORT ChromeProcessDescriptor : public ::protozero::CppMessageObj { |
| public: |
| using ProcessType = ChromeProcessDescriptor_ProcessType; |
| static constexpr auto PROCESS_UNSPECIFIED = ChromeProcessDescriptor_ProcessType_PROCESS_UNSPECIFIED; |
| static constexpr auto PROCESS_BROWSER = ChromeProcessDescriptor_ProcessType_PROCESS_BROWSER; |
| static constexpr auto PROCESS_RENDERER = ChromeProcessDescriptor_ProcessType_PROCESS_RENDERER; |
| static constexpr auto PROCESS_UTILITY = ChromeProcessDescriptor_ProcessType_PROCESS_UTILITY; |
| static constexpr auto PROCESS_ZYGOTE = ChromeProcessDescriptor_ProcessType_PROCESS_ZYGOTE; |
| static constexpr auto PROCESS_SANDBOX_HELPER = ChromeProcessDescriptor_ProcessType_PROCESS_SANDBOX_HELPER; |
| static constexpr auto PROCESS_GPU = ChromeProcessDescriptor_ProcessType_PROCESS_GPU; |
| static constexpr auto PROCESS_PPAPI_PLUGIN = ChromeProcessDescriptor_ProcessType_PROCESS_PPAPI_PLUGIN; |
| static constexpr auto PROCESS_PPAPI_BROKER = ChromeProcessDescriptor_ProcessType_PROCESS_PPAPI_BROKER; |
| static constexpr auto PROCESS_SERVICE_NETWORK = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_NETWORK; |
| static constexpr auto PROCESS_SERVICE_TRACING = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_TRACING; |
| static constexpr auto PROCESS_SERVICE_STORAGE = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_STORAGE; |
| static constexpr auto PROCESS_SERVICE_AUDIO = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_AUDIO; |
| static constexpr auto PROCESS_SERVICE_DATA_DECODER = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_DATA_DECODER; |
| static constexpr auto PROCESS_SERVICE_UTIL_WIN = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_UTIL_WIN; |
| static constexpr auto PROCESS_SERVICE_PROXY_RESOLVER = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PROXY_RESOLVER; |
| static constexpr auto PROCESS_SERVICE_CDM = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_CDM; |
| static constexpr auto PROCESS_SERVICE_VIDEO_CAPTURE = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_VIDEO_CAPTURE; |
| static constexpr auto PROCESS_SERVICE_UNZIPPER = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_UNZIPPER; |
| static constexpr auto PROCESS_SERVICE_MIRRORING = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_MIRRORING; |
| static constexpr auto PROCESS_SERVICE_FILEPATCHER = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_FILEPATCHER; |
| static constexpr auto PROCESS_SERVICE_TTS = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_TTS; |
| static constexpr auto PROCESS_SERVICE_PRINTING = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PRINTING; |
| static constexpr auto PROCESS_SERVICE_QUARANTINE = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_QUARANTINE; |
| static constexpr auto PROCESS_SERVICE_CROS_LOCALSEARCH = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_CROS_LOCALSEARCH; |
| static constexpr auto PROCESS_SERVICE_CROS_ASSISTANT_AUDIO_DECODER = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_CROS_ASSISTANT_AUDIO_DECODER; |
| static constexpr auto PROCESS_SERVICE_FILEUTIL = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_FILEUTIL; |
| static constexpr auto PROCESS_SERVICE_PRINTCOMPOSITOR = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PRINTCOMPOSITOR; |
| static constexpr auto PROCESS_SERVICE_PAINTPREVIEW = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PAINTPREVIEW; |
| static constexpr auto PROCESS_SERVICE_SPEECHRECOGNITION = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SPEECHRECOGNITION; |
| static constexpr auto PROCESS_SERVICE_XRDEVICE = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_XRDEVICE; |
| static constexpr auto PROCESS_SERVICE_READICON = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_READICON; |
| static constexpr auto PROCESS_SERVICE_LANGUAGEDETECTION = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_LANGUAGEDETECTION; |
| static constexpr auto PROCESS_SERVICE_SHARING = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SHARING; |
| static constexpr auto PROCESS_SERVICE_MEDIAPARSER = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_MEDIAPARSER; |
| static constexpr auto PROCESS_SERVICE_QRCODEGENERATOR = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_QRCODEGENERATOR; |
| static constexpr auto PROCESS_SERVICE_PROFILEIMPORT = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_PROFILEIMPORT; |
| static constexpr auto PROCESS_SERVICE_IME = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_IME; |
| static constexpr auto PROCESS_SERVICE_RECORDING = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_RECORDING; |
| static constexpr auto PROCESS_SERVICE_SHAPEDETECTION = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SHAPEDETECTION; |
| static constexpr auto ProcessType_MIN = ChromeProcessDescriptor_ProcessType_PROCESS_UNSPECIFIED; |
| static constexpr auto ProcessType_MAX = ChromeProcessDescriptor_ProcessType_PROCESS_SERVICE_SHAPEDETECTION; |
| enum FieldNumbers { |
| kProcessTypeFieldNumber = 1, |
| kProcessPriorityFieldNumber = 2, |
| kLegacySortIndexFieldNumber = 3, |
| kHostAppPackageNameFieldNumber = 4, |
| kCrashTraceIdFieldNumber = 5, |
| }; |
| |
| ChromeProcessDescriptor(); |
| ~ChromeProcessDescriptor() override; |
| ChromeProcessDescriptor(ChromeProcessDescriptor&&) noexcept; |
| ChromeProcessDescriptor& operator=(ChromeProcessDescriptor&&); |
| ChromeProcessDescriptor(const ChromeProcessDescriptor&); |
| ChromeProcessDescriptor& operator=(const ChromeProcessDescriptor&); |
| bool operator==(const ChromeProcessDescriptor&) const; |
| bool operator!=(const ChromeProcessDescriptor& other) const { return !(*this == other); } |
| |
| bool ParseFromArray(const void*, size_t) override; |
| std::string SerializeAsString() const override; |
| std::vector<uint8_t> SerializeAsArray() const override; |
| void Serialize(::protozero::Message*) const; |
| |
| bool has_process_type() const { return _has_field_[1]; } |
| ChromeProcessDescriptor_ProcessType process_type() const { return process_type_; } |
| void set_process_type(ChromeProcessDescriptor_ProcessType value) { process_type_ = value; _has_field_.set(1); } |
| |
| bool has_process_priority() const { return _has_field_[2]; } |
| int32_t process_priority() const { return process_priority_; } |
| void set_process_priority(int32_t value) { process_priority_ = value; _has_field_.set(2); } |
| |
| bool has_legacy_sort_index() const { return _has_field_[3]; } |
| int32_t legacy_sort_index() const { return legacy_sort_index_; } |
| void set_legacy_sort_index(int32_t value) { legacy_sort_index_ = value; _has_field_.set(3); } |
| |
| bool has_host_app_package_name() const { return _has_field_[4]; } |
| const std::string& host_app_package_name() const { return host_app_package_name_; } |
| void set_host_app_package_name(const std::string& value) { host_app_package_name_ = value; _has_field_.set(4); } |
| |
| bool has_crash_trace_id() const { return _has_field_[5]; } |
| uint64_t crash_trace_id() const { return crash_trace_id_; } |
| void set_crash_trace_id(uint64_t value) { crash_trace_id_ = value; _has_field_.set(5); } |
| |
| private: |
| ChromeProcessDescriptor_ProcessType process_type_{}; |
| int32_t process_priority_{}; |
| int32_t legacy_sort_index_{}; |
| std::string host_app_package_name_{}; |
| uint64_t crash_trace_id_{}; |
| |
| // Allows to preserve unknown protobuf fields for compatibility |
| // with future versions of .proto files. |
| std::string unknown_fields_; |
| |
| std::bitset<6> _has_field_{}; |
| }; |
| |
| } // namespace perfetto |
| } // namespace protos |
| } // namespace gen |
| |
| #endif // PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_TRACK_EVENT_CHROME_PROCESS_DESCRIPTOR_PROTO_CPP_H_ |