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: service.go
    path of file: ./repos/lastbackend/pkg/distribution/types
    
    the code of the file until where you have to start completion: //
// Last.Backend LLC CONFIDENTIAL
// __________________
//
// [2014] - [2019] Last.Ba
    
func (s *ServiceSpec) GetResourceRequest() ResourceRequest {
	rr := ResourceRequest{}

	var (
		limitsRAM int64
		limitsCPU int64

		requestRAM int64
		requestCPU int64
	)

	for _, c := range s.Template.Containers {

		limitsCPU += c.Resources.Limits.CPU
		limitsRAM += c.Resources.Limits.RAM

		requestCPU += c.Resources.Request.CPU
		requestRAM += c.Resources.Request.RAM
	}

	if requestRAM > 0 {
		requestRAM = int64(s.Replicas) * requestRAM
		rr.Request.RAM = requestRAM
	}

	if requestCPU > 0 {
		requestCPU = int64(s.Replicas) * requestCPU
		rr.Request.CPU = requestCPU
	}

	if limitsRAM > 0 {
		limitsRAM = int64(s.Replicas) * limitsRAM
		rr.Limits.RAM = limitsRAM
	}

	if limitsCPU > 0 {
		limitsCPU = int64(s.Replicas) * limitsCPU
		rr.Limits.CPU = limitsCPU
	}

	return rr
}