UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

96 lines (83 loc) 3.33 kB
// // Copyright (C) 2018 The Android Open Source Project // // 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. // @generated by protoc-gen-es v2.2.2 with parameter "target=ts" // @generated from file protos/perfetto/trace/power/battery_counters.proto (package perfetto.protos, syntax proto2) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/trace/power/battery_counters.proto. */ export const file_protos_perfetto_trace_power_battery_counters: GenFile = /*@__PURE__*/ fileDesc("CjJwcm90b3MvcGVyZmV0dG8vdHJhY2UvcG93ZXIvYmF0dGVyeV9jb3VudGVycy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIrEBCg9CYXR0ZXJ5Q291bnRlcnMSGgoSY2hhcmdlX2NvdW50ZXJfdWFoGAEgASgDEhgKEGNhcGFjaXR5X3BlcmNlbnQYAiABKAISEgoKY3VycmVudF91YRgDIAEoAxIWCg5jdXJyZW50X2F2Z191YRgEIAEoAxIMCgRuYW1lGAUgASgJEhoKEmVuZXJneV9jb3VudGVyX3V3aBgGIAEoAxISCgp2b2x0YWdlX3V2GAcgASgD"); /** * @generated from message perfetto.protos.BatteryCounters */ export type BatteryCounters = Message<"perfetto.protos.BatteryCounters"> & { /** * Battery capacity in microampere-hours(µAh). Also known as Coulomb counter. * * @generated from field: optional int64 charge_counter_uah = 1; */ chargeCounterUah: bigint; /** * Remaining battery capacity percentage of total capacity * * @generated from field: optional float capacity_percent = 2; */ capacityPercent: number; /** * Instantaneous battery current in microamperes(µA). * Negative values indicate current being drained from the battery and * positive values indicate current feeding the battery from a charge source * (USB). * * See https://perfetto.dev/docs/data-sources/battery-counters for more info. * * @generated from field: optional int64 current_ua = 3; */ currentUa: bigint; /** * Instantaneous battery current in microamperes(µA). * * @generated from field: optional int64 current_avg_ua = 4; */ currentAvgUa: bigint; /** * Battery name, emitted only on multiple batteries. * * @generated from field: optional string name = 5; */ name: string; /** * Battery capacity in microwatt-hours(µWh). * * @generated from field: optional int64 energy_counter_uwh = 6; */ energyCounterUwh: bigint; /** * Battery voltage in microvolts(µV). * * @generated from field: optional int64 voltage_uv = 7; */ voltageUv: bigint; }; /** * Describes the message perfetto.protos.BatteryCounters. * Use `create(BatteryCountersSchema)` to create a new message. */ export const BatteryCountersSchema: GenMessage<BatteryCounters> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_power_battery_counters, 0);