Would my german shepard dogs protect me if my life was in danger .even though they are pets?
While it’s theoretically possible that your pet GSD would have the temperament required & therefore the confidence to engage a human who posed a real threat, in practice it is highly unlikely. The majority of pet dogs look to their human pack to protect them from threats outside the pack & not the other way around. When faced with a threat your dogs, in common with my pet Dobermanns, would protect their own behinds by instinctively taking flight to avoid a fight, freeze or bark defensively {often mistaken as protective behavior when it’s fear based}. Your GSD will be an effective visual deterrent & should make good watch dogs by barking an alarm when someone approaches your property.