// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

// Code generated by "pdata/internal/cmd/pdatagen/main.go". DO NOT EDIT.
// To regenerate this file run "make genpdata".

package internal

import (
	otlpresource "go.opentelemetry.io/collector/pdata/internal/data/protogen/resource/v1"
)

type Resource struct {
	orig *otlpresource.Resource
}

func GetOrigResource(ms Resource) *otlpresource.Resource {
	return ms.orig
}

func NewResource(orig *otlpresource.Resource) Resource {
	return Resource{orig: orig}
}

func GenerateTestResource() Resource {
	orig := otlpresource.Resource{}
	tv := NewResource(&orig)
	FillTestResource(tv)
	return tv
}

func FillTestResource(tv Resource) {
	FillTestMap(NewMap(&tv.orig.Attributes))
	tv.orig.DroppedAttributesCount = uint32(17)
}
