Skip to content

Commit 3cf8eee

Browse files
authored
SandboxContext: Remove AttachProcessRequest/Response (#121)
These were not used in any rpcs and were a leftover idea.
1 parent 8923495 commit 3cf8eee

2 files changed

Lines changed: 0 additions & 131 deletions

File tree

Sources/Containerization/SandboxContext/SandboxContext.pb.swift

Lines changed: 0 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -446,50 +446,6 @@ public struct Com_Apple_Containerization_Sandbox_V3_CreateProcessResponse: Senda
446446
public init() {}
447447
}
448448

449-
public struct Com_Apple_Containerization_Sandbox_V3_AttachProcessRequest: Sendable {
450-
// SwiftProtobuf.Message conformance is added in an extension below. See the
451-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
452-
// methods supported on all messages.
453-
454-
public var id: String = String()
455-
456-
public var containerID: String {
457-
get {return _containerID ?? String()}
458-
set {_containerID = newValue}
459-
}
460-
/// Returns true if `containerID` has been explicitly set.
461-
public var hasContainerID: Bool {return self._containerID != nil}
462-
/// Clears the value of `containerID`. Subsequent reads from it will return its default value.
463-
public mutating func clearContainerID() {self._containerID = nil}
464-
465-
public var unknownFields = SwiftProtobuf.UnknownStorage()
466-
467-
public init() {}
468-
469-
fileprivate var _containerID: String? = nil
470-
}
471-
472-
public struct Com_Apple_Containerization_Sandbox_V3_AttachProcessResponse: Sendable {
473-
// SwiftProtobuf.Message conformance is added in an extension below. See the
474-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
475-
// methods supported on all messages.
476-
477-
public var ports: Com_Apple_Containerization_Sandbox_V3_Stdio {
478-
get {return _ports ?? Com_Apple_Containerization_Sandbox_V3_Stdio()}
479-
set {_ports = newValue}
480-
}
481-
/// Returns true if `ports` has been explicitly set.
482-
public var hasPorts: Bool {return self._ports != nil}
483-
/// Clears the value of `ports`. Subsequent reads from it will return its default value.
484-
public mutating func clearPorts() {self._ports = nil}
485-
486-
public var unknownFields = SwiftProtobuf.UnknownStorage()
487-
488-
public init() {}
489-
490-
fileprivate var _ports: Com_Apple_Containerization_Sandbox_V3_Stdio? = nil
491-
}
492-
493449
public struct Com_Apple_Containerization_Sandbox_V3_WaitProcessRequest: Sendable {
494450
// SwiftProtobuf.Message conformance is added in an extension below. See the
495451
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -1606,84 +1562,6 @@ extension Com_Apple_Containerization_Sandbox_V3_CreateProcessResponse: SwiftProt
16061562
}
16071563
}
16081564

1609-
extension Com_Apple_Containerization_Sandbox_V3_AttachProcessRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1610-
public static let protoMessageName: String = _protobuf_package + ".AttachProcessRequest"
1611-
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1612-
1: .same(proto: "id"),
1613-
2: .same(proto: "containerID"),
1614-
]
1615-
1616-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1617-
while let fieldNumber = try decoder.nextFieldNumber() {
1618-
// The use of inline closures is to circumvent an issue where the compiler
1619-
// allocates stack space for every case branch when no optimizations are
1620-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
1621-
switch fieldNumber {
1622-
case 1: try { try decoder.decodeSingularStringField(value: &self.id) }()
1623-
case 2: try { try decoder.decodeSingularStringField(value: &self._containerID) }()
1624-
default: break
1625-
}
1626-
}
1627-
}
1628-
1629-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1630-
// The use of inline closures is to circumvent an issue where the compiler
1631-
// allocates stack space for every if/case branch local when no optimizations
1632-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1633-
// https://github.com/apple/swift-protobuf/issues/1182
1634-
if !self.id.isEmpty {
1635-
try visitor.visitSingularStringField(value: self.id, fieldNumber: 1)
1636-
}
1637-
try { if let v = self._containerID {
1638-
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
1639-
} }()
1640-
try unknownFields.traverse(visitor: &visitor)
1641-
}
1642-
1643-
public static func ==(lhs: Com_Apple_Containerization_Sandbox_V3_AttachProcessRequest, rhs: Com_Apple_Containerization_Sandbox_V3_AttachProcessRequest) -> Bool {
1644-
if lhs.id != rhs.id {return false}
1645-
if lhs._containerID != rhs._containerID {return false}
1646-
if lhs.unknownFields != rhs.unknownFields {return false}
1647-
return true
1648-
}
1649-
}
1650-
1651-
extension Com_Apple_Containerization_Sandbox_V3_AttachProcessResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1652-
public static let protoMessageName: String = _protobuf_package + ".AttachProcessResponse"
1653-
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1654-
1: .same(proto: "ports"),
1655-
]
1656-
1657-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1658-
while let fieldNumber = try decoder.nextFieldNumber() {
1659-
// The use of inline closures is to circumvent an issue where the compiler
1660-
// allocates stack space for every case branch when no optimizations are
1661-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
1662-
switch fieldNumber {
1663-
case 1: try { try decoder.decodeSingularMessageField(value: &self._ports) }()
1664-
default: break
1665-
}
1666-
}
1667-
}
1668-
1669-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1670-
// The use of inline closures is to circumvent an issue where the compiler
1671-
// allocates stack space for every if/case branch local when no optimizations
1672-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1673-
// https://github.com/apple/swift-protobuf/issues/1182
1674-
try { if let v = self._ports {
1675-
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
1676-
} }()
1677-
try unknownFields.traverse(visitor: &visitor)
1678-
}
1679-
1680-
public static func ==(lhs: Com_Apple_Containerization_Sandbox_V3_AttachProcessResponse, rhs: Com_Apple_Containerization_Sandbox_V3_AttachProcessResponse) -> Bool {
1681-
if lhs._ports != rhs._ports {return false}
1682-
if lhs.unknownFields != rhs.unknownFields {return false}
1683-
return true
1684-
}
1685-
}
1686-
16871565
extension Com_Apple_Containerization_Sandbox_V3_WaitProcessRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
16881566
public static let protoMessageName: String = _protobuf_package + ".WaitProcessRequest"
16891567
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [

Sources/Containerization/SandboxContext/SandboxContext.proto

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,6 @@ message CreateProcessRequest {
142142

143143
message CreateProcessResponse {}
144144

145-
message AttachProcessRequest {
146-
string id = 1;
147-
optional string containerID = 2;
148-
}
149-
150-
message AttachProcessResponse {
151-
Stdio ports = 1;
152-
}
153-
154145
message WaitProcessRequest {
155146
string id = 1;
156147
optional string containerID = 2;

0 commit comments

Comments
 (0)