We’ve had a new pup for the last 5 months.
I worked all day – the OH works from home but is out on site for 3no. mornings a week, but back by lunch.
I suppose it depends on how old the dog is – if older might be ok, used to work with a couple who wnet home every lunch to let the dogs out for exercise and toilet etc. then came back to work for the afternoon and they seemed happy enough.
IMHO though I wouldn’t have got the dog if were going to be leaving it for 8+ hours a day. Especially as the breeds you mention are likely to need a fair amount of exercise.