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 { ResourceProfiles } from "../../../profiles/v1/profiles"; /** * @generated from protobuf message opentelemetry.proto.collector.profiles.v1.ExportProfilesServiceRequest */ export interface ExportProfilesServiceRequest { /** * An array of ResourceProfiles. * For data coming from a single resource this array will typically contain one * element. Intermediary nodes (such as OpenTelemetry Collector) that receive * data from multiple origins typically batch the data before forwarding further and * in that case this array will contain multiple elements. * * @generated from protobuf field: repeated opentelemetry.proto.profiles.v1.ResourceProfiles resource_profiles = 1; */ resourceProfiles: ResourceProfiles[]; } /** * @generated from protobuf message opentelemetry.proto.collector.profiles.v1.ExportProfilesServiceResponse */ export interface ExportProfilesServiceResponse { /** * The details of a partially successful export request. * * If the request is only partially accepted * (i.e. when the server accepts only parts of the data and rejects the rest) * the server MUST initialize the `partial_success` field and MUST * set the `rejected_` with the number of items it rejected. * * Servers MAY also make use of the `partial_success` field to convey * warnings/suggestions to senders even when the request was fully accepted. * In such cases, the `rejected_` MUST have a value of `0` and * the `error_message` MUST be non-empty. * * A `partial_success` message with an empty value (rejected_ = 0 and * `error_message` = "") is equivalent to it not being set/present. Senders * SHOULD interpret it the same way as in the full success case. * * @generated from protobuf field: opentelemetry.proto.collector.profiles.v1.ExportProfilesPartialSuccess partial_success = 1; */ partialSuccess?: ExportProfilesPartialSuccess; } /** * @generated from protobuf message opentelemetry.proto.collector.profiles.v1.ExportProfilesPartialSuccess */ export interface ExportProfilesPartialSuccess { /** * The number of rejected profiles. * * A `rejected_` field holding a `0` value indicates that the * request was fully accepted. * * @generated from protobuf field: int64 rejected_profiles = 1; */ rejectedProfiles: bigint; /** * A developer-facing human-readable message in English. It should be used * either to explain why the server rejected parts of the data during a partial * success or to convey warnings/suggestions during a full success. The message * should offer guidance on how users can address such issues. * * error_message is an optional field. An error_message with an empty value * is equivalent to it not being set. * * @generated from protobuf field: string error_message = 2; */ errorMessage: string; } declare class ExportProfilesServiceRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): ExportProfilesServiceRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportProfilesServiceRequest): ExportProfilesServiceRequest; internalBinaryWrite(message: ExportProfilesServiceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.collector.profiles.v1.ExportProfilesServiceRequest */ export declare const ExportProfilesServiceRequest: ExportProfilesServiceRequest$Type; declare class ExportProfilesServiceResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): ExportProfilesServiceResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportProfilesServiceResponse): ExportProfilesServiceResponse; internalBinaryWrite(message: ExportProfilesServiceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.collector.profiles.v1.ExportProfilesServiceResponse */ export declare const ExportProfilesServiceResponse: ExportProfilesServiceResponse$Type; declare class ExportProfilesPartialSuccess$Type extends MessageType { constructor(); create(value?: PartialMessage): ExportProfilesPartialSuccess; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportProfilesPartialSuccess): ExportProfilesPartialSuccess; internalBinaryWrite(message: ExportProfilesPartialSuccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.collector.profiles.v1.ExportProfilesPartialSuccess */ export declare const ExportProfilesPartialSuccess: ExportProfilesPartialSuccess$Type; /** * @generated ServiceType for protobuf service opentelemetry.proto.collector.profiles.v1.ProfilesService */ export declare const ProfilesService: ServiceType; export {}; //# sourceMappingURL=profiles_service.d.ts.map