The resource for the spans in this message. If this field is not set then no resource info is known.
Generated from protobuf field <code>.opentelemetry.proto.resource.v1.Resource resource = 1;</code>
\Opentelemetry\Proto\Resource\V1\Resource|null
public function getResource() { return $this->resource; }