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 { Timestamp } from "../../../google/protobuf/timestamp"; /** * ShouldInitiateUploadRequest is the request for ShouldInitiateUpload. * * @generated from protobuf message parca.debuginfo.v1alpha1.ShouldInitiateUploadRequest */ export interface ShouldInitiateUploadRequest { /** * The build_id of the debuginfo. * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * Hash of the debuginfo to upload. * * @generated from protobuf field: string hash = 2 */ hash: string; /** * Force uploading even if valid debuginfos are already available. * * @generated from protobuf field: bool force = 3 */ force: boolean; /** * Type of debuginfo to propose uploading. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoType type = 4 */ type: DebuginfoType; /** * Type of build ID. * * @generated from protobuf field: parca.debuginfo.v1alpha1.BuildIDType build_id_type = 5 */ buildIdType: BuildIDType; } /** * ShouldInitiateUploadResponse is the response for ShouldInitiateUpload. * * @generated from protobuf message parca.debuginfo.v1alpha1.ShouldInitiateUploadResponse */ export interface ShouldInitiateUploadResponse { /** * Whether an upload should be initiated or not. * * @generated from protobuf field: bool should_initiate_upload = 1 */ shouldInitiateUpload: boolean; /** * Reason for why an upload should be initiated or not. * * @generated from protobuf field: string reason = 2 */ reason: string; } /** * InitiateUploadRequest is the request to initiate an upload. * * @generated from protobuf message parca.debuginfo.v1alpha1.InitiateUploadRequest */ export interface InitiateUploadRequest { /** * The build_id of the debug info to upload. * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * The size of the debug info to upload. * * @generated from protobuf field: int64 size = 2 */ size: bigint; /** * Hash of the debuginfo to upload. * * @generated from protobuf field: string hash = 3 */ hash: string; /** * Force uploading even if valid debuginfos are already available. * * @generated from protobuf field: bool force = 4 */ force: boolean; /** * Type of debuginfo to propose uploading. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoType type = 5 */ type: DebuginfoType; /** * Type of build ID. * * @generated from protobuf field: parca.debuginfo.v1alpha1.BuildIDType build_id_type = 6 */ buildIdType: BuildIDType; } /** * InitiateUploadResponse is the response to an InitiateUploadRequest. * * @generated from protobuf message parca.debuginfo.v1alpha1.InitiateUploadResponse */ export interface InitiateUploadResponse { /** * UploadInstructions contains the instructions for the client to upload the debuginfo. * * @generated from protobuf field: parca.debuginfo.v1alpha1.UploadInstructions upload_instructions = 1 */ uploadInstructions?: UploadInstructions; } /** * UploadInstructions contains the instructions for the client to upload debuginfo. * * @generated from protobuf message parca.debuginfo.v1alpha1.UploadInstructions */ export interface UploadInstructions { /** * The build ID of the debuginfo to upload. * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * The upload_id to use for uploading. * * @generated from protobuf field: string upload_id = 2 */ uploadId: string; /** * The strategy to use for uploading. * * @generated from protobuf field: parca.debuginfo.v1alpha1.UploadInstructions.UploadStrategy upload_strategy = 3 */ uploadStrategy: UploadInstructions_UploadStrategy; /** * The signed url to use for uploading using a PUT request when the upload * strategy is SIGNED_STRATEGY_URL. * * @generated from protobuf field: string signed_url = 4 */ signedUrl: string; /** * Type of debuginfo the upload instructions are for. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoType type = 5 */ type: DebuginfoType; } /** * The strategy to use for uploading. * * @generated from protobuf enum parca.debuginfo.v1alpha1.UploadInstructions.UploadStrategy */ export declare enum UploadInstructions_UploadStrategy { /** * The upload is not allowed. * * @generated from protobuf enum value: UPLOAD_STRATEGY_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * The upload is allowed and should be done via the Upload RPC. * * @generated from protobuf enum value: UPLOAD_STRATEGY_GRPC = 1; */ GRPC = 1, /** * The upload is allowed and should be done via a returned signed URL. * * @generated from protobuf enum value: UPLOAD_STRATEGY_SIGNED_URL = 2; */ SIGNED_URL = 2 } /** * MarkUploadFinishedRequest is the request to mark an upload as finished. * * @generated from protobuf message parca.debuginfo.v1alpha1.MarkUploadFinishedRequest */ export interface MarkUploadFinishedRequest { /** * The build_id of the debug info to mark as finished. * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * The upload_id of the debug info to mark as finished. * * @generated from protobuf field: string upload_id = 2 */ uploadId: string; /** * The type of debuginfo upload to mark as finished. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoType type = 3 */ type: DebuginfoType; } /** * MarkUploadFinishedResponse is the response to a MarkUploadFinishedRequest. * * @generated from protobuf message parca.debuginfo.v1alpha1.MarkUploadFinishedResponse */ export interface MarkUploadFinishedResponse { } /** * UploadRequest upload debug info * * @generated from protobuf message parca.debuginfo.v1alpha1.UploadRequest */ export interface UploadRequest { /** * data contains either the upload info metadata or the debug info * * @generated from protobuf oneof: data */ data: { oneofKind: "info"; /** * info is the metadata for the debug info * * @generated from protobuf field: parca.debuginfo.v1alpha1.UploadInfo info = 1 */ info: UploadInfo; } | { oneofKind: "chunkData"; /** * chunk_data is the raw bytes of the debug info * * @generated from protobuf field: bytes chunk_data = 2 */ chunkData: Uint8Array; } | { oneofKind: undefined; }; } /** * UploadInfo contains the build_id and other metadata for the debug data * * @generated from protobuf message parca.debuginfo.v1alpha1.UploadInfo */ export interface UploadInfo { /** * build_id is a unique identifier for the debug data * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * upload_id is a unique identifier for the upload * * @generated from protobuf field: string upload_id = 2 */ uploadId: string; /** * the type of debuginfo that's being uploaded * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoType type = 3 */ type: DebuginfoType; } /** * UploadResponse returns the build_id and the size of the uploaded debug info * * @generated from protobuf message parca.debuginfo.v1alpha1.UploadResponse */ export interface UploadResponse { /** * build_id is a unique identifier for the debug data * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * size is the number of bytes of the debug info * * @generated from protobuf field: uint64 size = 2 */ size: bigint; } /** * Debuginfo contains metadata about a debuginfo file. * * @generated from protobuf message parca.debuginfo.v1alpha1.Debuginfo */ export interface Debuginfo { /** * BuildID is the build ID of the debuginfo. * * @generated from protobuf field: string build_id = 1 */ buildId: string; /** * Source is the source of the debuginfo. * * @generated from protobuf field: parca.debuginfo.v1alpha1.Debuginfo.Source source = 2 */ source: Debuginfo_Source; /** * DebuginfoUpload is the debuginfo upload metadata. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoUpload upload = 3 */ upload?: DebuginfoUpload; /** * Quality is the quality of the debuginfo. This is set asynchonously by the * symbolizer when the debuginfo is actually used. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoQuality quality = 4 */ quality?: DebuginfoQuality; /** * The debuginfod servers this piece of debuginfo is available at. * * @generated from protobuf field: repeated string debuginfod_servers = 5 */ debuginfodServers: string[]; /** * The type of debuginfo. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoType type = 6 */ type: DebuginfoType; } /** * Source is the source of the debuginfo. * * @generated from protobuf enum parca.debuginfo.v1alpha1.Debuginfo.Source */ export declare enum Debuginfo_Source { /** * To understand when no source is set we have the unknown source. * * @generated from protobuf enum value: SOURCE_UNKNOWN_UNSPECIFIED = 0; */ UNKNOWN_UNSPECIFIED = 0, /** * The debuginfo was uploaded by a user/agent. * * @generated from protobuf enum value: SOURCE_UPLOAD = 1; */ UPLOAD = 1, /** * The debuginfo is available from the configured debuginfod server(s). * * @generated from protobuf enum value: SOURCE_DEBUGINFOD = 2; */ DEBUGINFOD = 2 } /** * DebuginfoUpload contains metadata about a debuginfo upload. * * @generated from protobuf message parca.debuginfo.v1alpha1.DebuginfoUpload */ export interface DebuginfoUpload { /** * UploadID is the ID of the debuginfo upload. * * @generated from protobuf field: string id = 1 */ id: string; /** * Hash is the hash of the debuginfo. * * @generated from protobuf field: string hash = 2 */ hash: string; /** * State is the current state of the debuginfo upload. * * @generated from protobuf field: parca.debuginfo.v1alpha1.DebuginfoUpload.State state = 3 */ state: DebuginfoUpload_State; /** * StartedAt is the time the debuginfo upload was started. * * @generated from protobuf field: google.protobuf.Timestamp started_at = 4 */ startedAt?: Timestamp; /** * FinishedAt is the time the debuginfo upload was finished. * * @generated from protobuf field: google.protobuf.Timestamp finished_at = 5 */ finishedAt?: Timestamp; } /** * The state of the debuginfo upload. * * @generated from protobuf enum parca.debuginfo.v1alpha1.DebuginfoUpload.State */ export declare enum DebuginfoUpload_State { /** * To understand when no upload state is set we have the unknown state. * * @generated from protobuf enum value: STATE_UNKNOWN_UNSPECIFIED = 0; */ UNKNOWN_UNSPECIFIED = 0, /** * The debuginfo is currently being uploaded. * * @generated from protobuf enum value: STATE_UPLOADING = 1; */ UPLOADING = 1, /** * The debuginfo has been uploaded successfully. * * @generated from protobuf enum value: STATE_UPLOADED = 2; */ UPLOADED = 2, /** * The debuginfo has been purged/cleaned up from storage. * * @generated from protobuf enum value: STATE_PURGED = 3; */ PURGED = 3 } /** * DebuginfoQuality is the quality of the debuginfo. * * @generated from protobuf message parca.debuginfo.v1alpha1.DebuginfoQuality */ export interface DebuginfoQuality { /** * The debuginfo file is not a valid ELF file. * * @generated from protobuf field: bool not_valid_elf = 1 */ notValidElf: boolean; /** * Whether the debuginfo contains dwarf information. * * @generated from protobuf field: bool has_dwarf = 2 */ hasDwarf: boolean; /** * Whether the debuginfo contains Go's pclntab. * * @generated from protobuf field: bool has_go_pclntab = 3 */ hasGoPclntab: boolean; /** * Whether the debuginfo contains symtab. * * @generated from protobuf field: bool has_symtab = 4 */ hasSymtab: boolean; /** * Whether the debuginfo contains dynsym. * * @generated from protobuf field: bool has_dynsym = 5 */ hasDynsym: boolean; } /** * Types of debuginfo. * * @generated from protobuf enum parca.debuginfo.v1alpha1.DebuginfoType */ export declare enum DebuginfoType { /** * The default type that the API always supported. This type is expected to * contain debuginfos for symbolizaton purposes. * * @generated from protobuf enum value: DEBUGINFO_TYPE_DEBUGINFO_UNSPECIFIED = 0; */ DEBUGINFO_UNSPECIFIED = 0, /** * The type to identify executables. This is meant to be used for * disassembling so it is expected to contain executable `.text` section. * * @generated from protobuf enum value: DEBUGINFO_TYPE_EXECUTABLE = 1; */ EXECUTABLE = 1, /** * The type to identify a source tarball. This is expected to contain * multiple source files that debuginfo references. It is meant to show code * with profiling data inline. * * @generated from protobuf enum value: DEBUGINFO_TYPE_SOURCES = 2; */ SOURCES = 2, /** * The type to identify JavaScript/TypeScript source maps. This is meant to * be used for mapping minified JavaScript locations back to original source * code positions. * * @generated from protobuf enum value: DEBUGINFO_TYPE_SOURCE_MAP = 3; */ SOURCE_MAP = 3 } /** * BuildIDType is the type of build ID. * * @generated from protobuf enum parca.debuginfo.v1alpha1.BuildIDType */ export declare enum BuildIDType { /** * The build ID is unknown. * * @generated from protobuf enum value: BUILD_ID_TYPE_UNKNOWN_UNSPECIFIED = 0; */ BUILD_ID_TYPE_UNKNOWN_UNSPECIFIED = 0, /** * The build ID is a GNU build ID. * * @generated from protobuf enum value: BUILD_ID_TYPE_GNU = 1; */ BUILD_ID_TYPE_GNU = 1, /** * The build ID is an opaque hash. * * @generated from protobuf enum value: BUILD_ID_TYPE_HASH = 2; */ BUILD_ID_TYPE_HASH = 2, /** * The build ID is a Go build ID. * * @generated from protobuf enum value: BUILD_ID_TYPE_GO = 3; */ BUILD_ID_TYPE_GO = 3, /** * The build ID is a debug ID for source maps (UUID format). * * @generated from protobuf enum value: BUILD_ID_TYPE_SOURCE_MAP_DEBUG_ID = 4; */ BUILD_ID_TYPE_SOURCE_MAP_DEBUG_ID = 4 } declare class ShouldInitiateUploadRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): ShouldInitiateUploadRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ShouldInitiateUploadRequest): ShouldInitiateUploadRequest; internalBinaryWrite(message: ShouldInitiateUploadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.ShouldInitiateUploadRequest */ export declare const ShouldInitiateUploadRequest: ShouldInitiateUploadRequest$Type; declare class ShouldInitiateUploadResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): ShouldInitiateUploadResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ShouldInitiateUploadResponse): ShouldInitiateUploadResponse; internalBinaryWrite(message: ShouldInitiateUploadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.ShouldInitiateUploadResponse */ export declare const ShouldInitiateUploadResponse: ShouldInitiateUploadResponse$Type; declare class InitiateUploadRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): InitiateUploadRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitiateUploadRequest): InitiateUploadRequest; internalBinaryWrite(message: InitiateUploadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.InitiateUploadRequest */ export declare const InitiateUploadRequest: InitiateUploadRequest$Type; declare class InitiateUploadResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): InitiateUploadResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitiateUploadResponse): InitiateUploadResponse; internalBinaryWrite(message: InitiateUploadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.InitiateUploadResponse */ export declare const InitiateUploadResponse: InitiateUploadResponse$Type; declare class UploadInstructions$Type extends MessageType { constructor(); create(value?: PartialMessage): UploadInstructions; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInstructions): UploadInstructions; internalBinaryWrite(message: UploadInstructions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.UploadInstructions */ export declare const UploadInstructions: UploadInstructions$Type; declare class MarkUploadFinishedRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): MarkUploadFinishedRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MarkUploadFinishedRequest): MarkUploadFinishedRequest; internalBinaryWrite(message: MarkUploadFinishedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.MarkUploadFinishedRequest */ export declare const MarkUploadFinishedRequest: MarkUploadFinishedRequest$Type; declare class MarkUploadFinishedResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): MarkUploadFinishedResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MarkUploadFinishedResponse): MarkUploadFinishedResponse; internalBinaryWrite(message: MarkUploadFinishedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.MarkUploadFinishedResponse */ export declare const MarkUploadFinishedResponse: MarkUploadFinishedResponse$Type; declare class UploadRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): UploadRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadRequest): UploadRequest; internalBinaryWrite(message: UploadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.UploadRequest */ export declare const UploadRequest: UploadRequest$Type; declare class UploadInfo$Type extends MessageType { constructor(); create(value?: PartialMessage): UploadInfo; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInfo): UploadInfo; internalBinaryWrite(message: UploadInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.UploadInfo */ export declare const UploadInfo: UploadInfo$Type; declare class UploadResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): UploadResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadResponse): UploadResponse; internalBinaryWrite(message: UploadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.UploadResponse */ export declare const UploadResponse: UploadResponse$Type; declare class Debuginfo$Type extends MessageType { constructor(); create(value?: PartialMessage): Debuginfo; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Debuginfo): Debuginfo; internalBinaryWrite(message: Debuginfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.Debuginfo */ export declare const Debuginfo: Debuginfo$Type; declare class DebuginfoUpload$Type extends MessageType { constructor(); create(value?: PartialMessage): DebuginfoUpload; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DebuginfoUpload): DebuginfoUpload; internalBinaryWrite(message: DebuginfoUpload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.DebuginfoUpload */ export declare const DebuginfoUpload: DebuginfoUpload$Type; declare class DebuginfoQuality$Type extends MessageType { constructor(); create(value?: PartialMessage): DebuginfoQuality; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DebuginfoQuality): DebuginfoQuality; internalBinaryWrite(message: DebuginfoQuality, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.debuginfo.v1alpha1.DebuginfoQuality */ export declare const DebuginfoQuality: DebuginfoQuality$Type; /** * @generated ServiceType for protobuf service parca.debuginfo.v1alpha1.DebuginfoService */ export declare const DebuginfoService: ServiceType; export {}; //# sourceMappingURL=debuginfo.d.ts.map