// Copyright (C) 2025 Rivos Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Autogenerated by the ProtoZero Rust compiler plugin.
// Invoked by contrib/rust-sdk/tools/gen_rust_protos
// DO NOT EDIT.

use crate::pb_enum;
use crate::pb_msg;

pb_enum!(ProcessDescriptorChromeProcessType {
    PROCESS_UNSPECIFIED: 0,
    PROCESS_BROWSER: 1,
    PROCESS_RENDERER: 2,
    PROCESS_UTILITY: 3,
    PROCESS_ZYGOTE: 4,
    PROCESS_SANDBOX_HELPER: 5,
    PROCESS_GPU: 6,
    PROCESS_PPAPI_PLUGIN: 7,
    PROCESS_PPAPI_BROKER: 8,
});

pb_msg!(ProcessDescriptor {
    pid: i32, primitive, 1,
    cmdline: String, primitive, 2,
    process_name: String, primitive, 6,
    process_priority: i32, primitive, 5,
    start_timestamp_ns: i64, primitive, 7,
    chrome_process_type: ProcessDescriptorChromeProcessType, enum, 4,
    legacy_sort_index: i32, primitive, 3,
    process_labels: String, primitive, 8,
});
