// Copyright 2019, OpenTelemetry Authors // // 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 v1.10.0 // @generated from file opentelemetry/proto/resource/v1/resource.proto (package opentelemetry.proto.resource.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { EntityRef, KeyValue } from "../../common/v1/common_pb.js"; /** * Resource information. * * @generated from message opentelemetry.proto.resource.v1.Resource */ export declare class Resource extends Message { /** * Set of attributes that describe the resource. * Attribute keys MUST be unique (it is not allowed to have more than one * attribute with the same key). * The behavior of software that receives duplicated keys can be unpredictable. * * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 1; */ attributes: KeyValue[]; /** * The number of dropped attributes. If the value is 0, then * no attributes were dropped. * * @generated from field: uint32 dropped_attributes_count = 2; */ droppedAttributesCount: number; /** * Set of entities that participate in this Resource. * * Note: keys in the references MUST exist in attributes of this message. * * Status: [Development] * * @generated from field: repeated opentelemetry.proto.common.v1.EntityRef entity_refs = 3; */ entityRefs: EntityRef[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "opentelemetry.proto.resource.v1.Resource"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Resource; static fromJson(jsonValue: JsonValue, options?: Partial): Resource; static fromJsonString(jsonString: string, options?: Partial): Resource; static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean; }