@@ -816,9 +816,20 @@ public struct Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkRequest: Senda
816816
817817 public var srcAddr : String = String ( )
818818
819+ public var gateway : String {
820+ get { return _gateway ?? String ( ) }
821+ set { _gateway = newValue}
822+ }
823+ /// Returns true if `gateway` has been explicitly set.
824+ public var hasGateway : Bool { return self . _gateway != nil }
825+ /// Clears the value of `gateway`. Subsequent reads from it will return its default value.
826+ public mutating func clearGateway( ) { self . _gateway = nil }
827+
819828 public var unknownFields = SwiftProtobuf . UnknownStorage ( )
820829
821830 public init ( ) { }
831+
832+ fileprivate var _gateway : String ? = nil
822833}
823834
824835public struct Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkResponse : Sendable {
@@ -2679,6 +2690,7 @@ extension Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkRequest: SwiftProt
26792690 1 : . same( proto: " interface " ) ,
26802691 2 : . same( proto: " address " ) ,
26812692 3 : . same( proto: " srcAddr " ) ,
2693+ 4 : . same( proto: " gateway " ) ,
26822694 ]
26832695
26842696 public mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
@@ -2690,12 +2702,17 @@ extension Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkRequest: SwiftProt
26902702 case 1 : try { try decoder. decodeSingularStringField ( value: & self . interface) } ( )
26912703 case 2 : try { try decoder. decodeSingularStringField ( value: & self . address) } ( )
26922704 case 3 : try { try decoder. decodeSingularStringField ( value: & self . srcAddr) } ( )
2705+ case 4 : try { try decoder. decodeSingularStringField ( value: & self . _gateway) } ( )
26932706 default : break
26942707 }
26952708 }
26962709 }
26972710
26982711 public func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
2712+ // The use of inline closures is to circumvent an issue where the compiler
2713+ // allocates stack space for every if/case branch local when no optimizations
2714+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2715+ // https://github.com/apple/swift-protobuf/issues/1182
26992716 if !self . interface. isEmpty {
27002717 try visitor. visitSingularStringField ( value: self . interface, fieldNumber: 1 )
27012718 }
@@ -2705,13 +2722,17 @@ extension Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkRequest: SwiftProt
27052722 if !self . srcAddr. isEmpty {
27062723 try visitor. visitSingularStringField ( value: self . srcAddr, fieldNumber: 3 )
27072724 }
2725+ try { if let v = self . _gateway {
2726+ try visitor. visitSingularStringField ( value: v, fieldNumber: 4 )
2727+ } } ( )
27082728 try unknownFields. traverse ( visitor: & visitor)
27092729 }
27102730
27112731 public static func == ( lhs: Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkRequest , rhs: Com_Apple_Containerization_Sandbox_V3_IpRouteAddLinkRequest ) -> Bool {
27122732 if lhs. interface != rhs. interface { return false }
27132733 if lhs. address != rhs. address { return false }
27142734 if lhs. srcAddr != rhs. srcAddr { return false }
2735+ if lhs. _gateway != rhs. _gateway { return false }
27152736 if lhs. unknownFields != rhs. unknownFields { return false }
27162737 return true
27172738 }
0 commit comments