You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: data_source_google_compute_forwarding_rules.go
    path of file: ./repos/magic-modules/mmv1/third_party/terraform/services/compute
    
    the code of the file until where you have to start completion: package compute

import (
	"fmt"

	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
	"github.com/hashicorp/terraform-provider-google/google/tpgresource"
	transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
)

func DataSourceGoogleComputeForwardingRules() *schema.Resource {
	return &schema.Resource{
		Read: dataSourceGoogleComputeForwardingR
    
func dataSourceGoogleComputeForwardingRulesRead(d *schema.ResourceData, meta interface{}) error {
	config := meta.(*transport_tpg.Config)
	userAgent, err := tpgresource.GenerateUserAgentString(d, config.UserAgent)
	if err != nil {
		return err
	}

	project, err := tpgresource.GetProject(d, config)
	if err != nil {
		return err
	}

	region, err := tpgresource.GetRegion(d, config)
	if err != nil {
		return err
	}

	id := fmt.Sprintf("projects/%s/regions/%s/forwardingRules", project, region)
	d.SetId(id)

	forwardingRulesAggregatedList, err := config.NewComputeClient(userAgent).ForwardingRules.List(project, region).Do()
	if err != nil {
		return transport_tpg.HandleNotFoundError(err, d, fmt.Sprintf("Forwarding Rules Not Found : %s", project))
	}

	forwardingRules := make([]map[string]interface{}, 0, len(forwardingRulesAggregatedList.Items))

	for i := 0; i < len(forwardingRulesAggregatedList.Items); i++ {
		rule := forwardingRulesAggregatedList.Items[i]
		mappedData := map[string]interface{}{
			"name":                 rule.Name,
			"network":              rule.Network,
			"subnetwork":           rule.Subnetwork,
			"backend_service":      rule.BackendService,
			"ip_address":           rule.IPAddress,
			"service_name":         rule.ServiceName,
			"service_label":        rule.ServiceLabel,
			"description":          rule.Description,
			"self_link":            rule.SelfLink,
			"labels":               rule.Labels,
			"ports":                rule.Ports,
			"region":               rule.Region,
			"target":               rule.Target,
			"ip_version":           rule.IpVersion,
			"network_tier":         rule.NetworkTier,
			"base_forwarding_rule": rule.BaseForwardingRule,
			"port_range":           rule.PortRange,
		}
		forwardingRules = append(forwardingRules, mappedData)
	}

	if err := d.Set("rules", forwardingRules); err != nil {
		return fmt.Errorf("Error setting the forwarding rules names: %s", err)
	}

	if err := d.Set("project", project); err != nil {
		return fmt.Errorf("Error setting the network names: %s", err)
	}

	if err := d.Set("region", region); err != nil {
		return fmt.Errorf("Error setting the region: %s", err)
	}

	return nil
}