//
// Copyright (C) 2022 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/config/android/android_system_property_config.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/config/android/android_system_property_config.proto.
 */
export const file_protos_perfetto_config_android_android_system_property_config: GenFile = /*@__PURE__*/
  fileDesc("CkNwcm90b3MvcGVyZmV0dG8vY29uZmlnL2FuZHJvaWQvYW5kcm9pZF9zeXN0ZW1fcHJvcGVydHlfY29uZmlnLnByb3RvEg9wZXJmZXR0by5wcm90b3MiRQobQW5kcm9pZFN5c3RlbVByb3BlcnR5Q29uZmlnEg8KB3BvbGxfbXMYASABKA0SFQoNcHJvcGVydHlfbmFtZRgCIAMoCQ");

/**
 * Data source that polls for system properties.
 *
 * @generated from message perfetto.protos.AndroidSystemPropertyConfig
 */
export type AndroidSystemPropertyConfig = Message<"perfetto.protos.AndroidSystemPropertyConfig"> & {
  /**
   * Frequency of polling. If absent the state will be recorded once, at the
   * start of the trace.
   * This is required to be > 100ms to avoid excessive CPU usage.
   *
   * @generated from field: optional uint32 poll_ms = 1;
   */
  pollMs: number;

  /**
   * Properties to poll. All property names must start with "debug.tracing.".
   *
   * @generated from field: repeated string property_name = 2;
   */
  propertyName: string[];
};

/**
 * Describes the message perfetto.protos.AndroidSystemPropertyConfig.
 * Use `create(AndroidSystemPropertyConfigSchema)` to create a new message.
 */
export const AndroidSystemPropertyConfigSchema: GenMessage<AndroidSystemPropertyConfig> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_config_android_android_system_property_config, 0);

