Asset/src/V1beta1/Asset.php
public function setResource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1beta1\Resource::class);
        $this->resource = $var;

        return $this;
    }
public function setResource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1beta1\Resource::class);
        $this->resource = $var;

        return $this;
    }
public function setResource ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Asset \ V1beta1 \ Resource :: class ) ; $ this -> resource = $ var ; return $ this ; }
Representation of the resource.

Generated from protobuf field <code>.google.cloud.asset.v1beta1.Resource resource = 3;</code>
@param \Google\Cloud\Asset\V1beta1\Resource $var
@return $this
Representation of the resource .