import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { Duration } from "../../../google/protobuf/duration"; import { Timestamp } from "../../../google/protobuf/timestamp"; /** * WriteRequest may contain an apache arrow record that only contains profiling * samples with a reference to a stacktrace ID, or a full stacktrace. If it * only contains samples, the server may request the full stacktrace from the * client should it not already know them. * * @generated from protobuf message parca.profilestore.v1alpha1.WriteRequest */ export interface WriteRequest { /** * The bytes containing the arrow record. * * @generated from protobuf field: bytes record = 1 */ record: Uint8Array; } /** * WriteResponse may be empty if the server doesn't need any further * information, or contain an arrow record that contains the stacktrace IDs * that are unknown and therefore requested by the client from the server. * * @generated from protobuf message parca.profilestore.v1alpha1.WriteResponse */ export interface WriteResponse { /** * When record is non-empty it contains the bytes of an arrow record that * contains a column containing the stacktraces that are unknown. * * @generated from protobuf field: bytes record = 1 */ record: Uint8Array; } /** * WriteArrowRequest is the request containing an arrow IPC buffer. * * @generated from protobuf message parca.profilestore.v1alpha1.WriteArrowRequest */ export interface WriteArrowRequest { /** * ipc_buffer is the raw bytes of an arrow IPC file. * * @generated from protobuf field: bytes ipc_buffer = 1 */ ipcBuffer: Uint8Array; } /** * WriteArrowResponse is the response for the WriteArrow RPC. * * @generated from protobuf message parca.profilestore.v1alpha1.WriteArrowResponse */ export interface WriteArrowResponse { } /** * WriteRawRequest writes a pprof profile for a given tenant * * @generated from protobuf message parca.profilestore.v1alpha1.WriteRawRequest */ export interface WriteRawRequest { /** * tenant is the given tenant to store the pprof profile under * * @deprecated * @generated from protobuf field: string tenant = 1 [deprecated = true] */ tenant: string; /** * series is a set raw pprof profiles and accompanying labels * * @generated from protobuf field: repeated parca.profilestore.v1alpha1.RawProfileSeries series = 2 */ series: RawProfileSeries[]; /** * normalized is a flag indicating if the addresses in the profile is normalized for position independent code * * @generated from protobuf field: bool normalized = 3 */ normalized: boolean; } /** * WriteRawResponse is the empty response * * @generated from protobuf message parca.profilestore.v1alpha1.WriteRawResponse */ export interface WriteRawResponse { } /** * RawProfileSeries represents the pprof profile and its associated labels * * @generated from protobuf message parca.profilestore.v1alpha1.RawProfileSeries */ export interface RawProfileSeries { /** * LabelSet is the key value pairs to identify the corresponding profile * * @generated from protobuf field: parca.profilestore.v1alpha1.LabelSet labels = 1 */ labels?: LabelSet; /** * samples are the set of profile bytes * * @generated from protobuf field: repeated parca.profilestore.v1alpha1.RawSample samples = 2 */ samples: RawSample[]; } /** * Label is a key value pair of identifiers * * @generated from protobuf message parca.profilestore.v1alpha1.Label */ export interface Label { /** * name is the label name * * @generated from protobuf field: string name = 1 */ name: string; /** * value is the value for the label name * * @generated from protobuf field: string value = 2 */ value: string; } /** * LabelSet is a group of labels * * @generated from protobuf message parca.profilestore.v1alpha1.LabelSet */ export interface LabelSet { /** * labels are the grouping of labels * * @generated from protobuf field: repeated parca.profilestore.v1alpha1.Label labels = 1 */ labels: Label[]; } /** * RawSample is the set of bytes that correspond to a pprof profile * * @generated from protobuf message parca.profilestore.v1alpha1.RawSample */ export interface RawSample { /** * raw_profile is the set of bytes of the pprof profile * * @generated from protobuf field: bytes raw_profile = 1 */ rawProfile: Uint8Array; /** * information about the executable and executable section for normalizaton * purposes. * * @generated from protobuf field: repeated parca.profilestore.v1alpha1.ExecutableInfo executable_info = 2 */ executableInfo: ExecutableInfo[]; } /** * ExecutableInfo is the information about the executable and executable * section for normalizaton purposes before symbolization. * * @generated from protobuf message parca.profilestore.v1alpha1.ExecutableInfo */ export interface ExecutableInfo { /** * elf_type is the type of the elf executable. Technically the elf type is a * 16 bit integer, but protobuf's smallest unsigned integer is 32 bits. * * @generated from protobuf field: uint32 elf_type = 1 */ elfType: number; /** * load_segment is the load segment of the executable. * * @generated from protobuf field: parca.profilestore.v1alpha1.LoadSegment load_segment = 2 */ loadSegment?: LoadSegment; } /** * LoadSegment is the load segment of the executable * * @generated from protobuf message parca.profilestore.v1alpha1.LoadSegment */ export interface LoadSegment { /** * The offset from the beginning of the file at which the first byte of the segment resides. * * @generated from protobuf field: uint64 offset = 1 */ offset: bigint; /** * The virtual address at which the first byte of the segment resides in memory. * * @generated from protobuf field: uint64 vaddr = 2 */ vaddr: bigint; } /** * AgentsRequest is the request to retrieve a list of agents * * @generated from protobuf message parca.profilestore.v1alpha1.AgentsRequest */ export interface AgentsRequest { } /** * AgentsResponse is the request to retrieve a list of agents * * @generated from protobuf message parca.profilestore.v1alpha1.AgentsResponse */ export interface AgentsResponse { /** * agents is a list of agents * * @generated from protobuf field: repeated parca.profilestore.v1alpha1.Agent agents = 1 */ agents: Agent[]; } /** * Agent is the agent representation * * @generated from protobuf message parca.profilestore.v1alpha1.Agent */ export interface Agent { /** * id is the agent identity that either represent by the node name or the IP address. * When node name is not found, this will fallback to IP address. * * @generated from protobuf field: string id = 1 */ id: string; /** * last_error is the error message most recently received from a push attempt * * @generated from protobuf field: string last_error = 2 */ lastError: string; /** * last_push is the time stamp the last push request was performed * * @generated from protobuf field: google.protobuf.Timestamp last_push = 3 */ lastPush?: Timestamp; /** * last_push_duration is the duration of the last push request * * @generated from protobuf field: google.protobuf.Duration last_push_duration = 4 */ lastPushDuration?: Duration; } declare class WriteRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): WriteRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WriteRequest): WriteRequest; internalBinaryWrite(message: WriteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.WriteRequest */ export declare const WriteRequest: WriteRequest$Type; declare class WriteResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): WriteResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WriteResponse): WriteResponse; internalBinaryWrite(message: WriteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.WriteResponse */ export declare const WriteResponse: WriteResponse$Type; declare class WriteArrowRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): WriteArrowRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WriteArrowRequest): WriteArrowRequest; internalBinaryWrite(message: WriteArrowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.WriteArrowRequest */ export declare const WriteArrowRequest: WriteArrowRequest$Type; declare class WriteArrowResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): WriteArrowResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WriteArrowResponse): WriteArrowResponse; internalBinaryWrite(message: WriteArrowResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.WriteArrowResponse */ export declare const WriteArrowResponse: WriteArrowResponse$Type; declare class WriteRawRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): WriteRawRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WriteRawRequest): WriteRawRequest; internalBinaryWrite(message: WriteRawRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.WriteRawRequest */ export declare const WriteRawRequest: WriteRawRequest$Type; declare class WriteRawResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): WriteRawResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WriteRawResponse): WriteRawResponse; internalBinaryWrite(message: WriteRawResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.WriteRawResponse */ export declare const WriteRawResponse: WriteRawResponse$Type; declare class RawProfileSeries$Type extends MessageType { constructor(); create(value?: PartialMessage): RawProfileSeries; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RawProfileSeries): RawProfileSeries; internalBinaryWrite(message: RawProfileSeries, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.profilestore.v1alpha1.RawProfileSeries */ export declare const RawProfileSeries: RawProfileSeries$Type; declare class Label$Type extends MessageType