@@ -165,9 +165,9 @@ public protocol Com_Apple_Containerization_Sandbox_V3_SandboxContextClientProtoc
165165 ) -> UnaryCall < Com_Apple_Containerization_Sandbox_V3_KillRequest , Com_Apple_Containerization_Sandbox_V3_KillResponse >
166166
167167 func notifyFileSystemEvent(
168- _ request : Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest ,
169- callOptions : CallOptions ?
170- ) -> UnaryCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse >
168+ callOptions : CallOptions ? ,
169+ handler : @escaping ( Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse ) -> Void
170+ ) -> BidirectionalStreamingCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse >
171171}
172172
173173extension Com_Apple_Containerization_Sandbox_V3_SandboxContextClientProtocol {
@@ -646,19 +646,22 @@ extension Com_Apple_Containerization_Sandbox_V3_SandboxContextClientProtocol {
646646
647647 /// Notify guest of filesystem events from host.
648648 ///
649+ /// Callers should use the `send` method on the returned object to send messages
650+ /// to the server. The caller should send an `.end` after the final message has been sent.
651+ ///
649652 /// - Parameters:
650- /// - request: Request to send to NotifyFileSystemEvent.
651653 /// - callOptions: Call options.
652- /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
654+ /// - handler: A closure called when each response is received from the server.
655+ /// - Returns: A `ClientStreamingCall` with futures for the metadata and status.
653656 public func notifyFileSystemEvent(
654- _ request : Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest ,
655- callOptions : CallOptions ? = nil
656- ) -> UnaryCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > {
657- return self . makeUnaryCall (
657+ callOptions : CallOptions ? = nil ,
658+ handler : @escaping ( Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse ) -> Void
659+ ) -> BidirectionalStreamingCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > {
660+ return self . makeBidirectionalStreamingCall (
658661 path: Com_Apple_Containerization_Sandbox_V3_SandboxContextClientMetadata . Methods. notifyFileSystemEvent. path,
659- request: request,
660662 callOptions: callOptions ?? self . defaultCallOptions,
661- interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ]
663+ interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ] ,
664+ handler: handler
662665 )
663666 }
664667}
@@ -857,9 +860,8 @@ public protocol Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncClientP
857860 ) -> GRPCAsyncUnaryCall < Com_Apple_Containerization_Sandbox_V3_KillRequest , Com_Apple_Containerization_Sandbox_V3_KillResponse >
858861
859862 func makeNotifyFileSystemEventCall(
860- _ request: Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest ,
861863 callOptions: CallOptions ?
862- ) -> GRPCAsyncUnaryCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse >
864+ ) -> GRPCAsyncBidirectionalStreamingCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse >
863865}
864866
865867@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
@@ -1185,12 +1187,10 @@ extension Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncClientProtoco
11851187 }
11861188
11871189 public func makeNotifyFileSystemEventCall(
1188- _ request: Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest ,
11891190 callOptions: CallOptions ? = nil
1190- ) -> GRPCAsyncUnaryCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > {
1191- return self . makeAsyncUnaryCall (
1191+ ) -> GRPCAsyncBidirectionalStreamingCall < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > {
1192+ return self . makeAsyncBidirectionalStreamingCall (
11921193 path: Com_Apple_Containerization_Sandbox_V3_SandboxContextClientMetadata . Methods. notifyFileSystemEvent. path,
1193- request: request,
11941194 callOptions: callOptions ?? self . defaultCallOptions,
11951195 interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ]
11961196 )
@@ -1511,13 +1511,25 @@ extension Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncClientProtoco
15111511 )
15121512 }
15131513
1514- public func notifyFileSystemEvent(
1515- _ request : Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest ,
1514+ public func notifyFileSystemEvent< RequestStream > (
1515+ _ requests : RequestStream ,
15161516 callOptions: CallOptions ? = nil
1517- ) async throws -> Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse {
1518- return try await self . performAsyncUnaryCall (
1517+ ) -> GRPCAsyncResponseStream < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > where RequestStream : Sequence , RequestStream . Element == Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest {
1518+ return self . performAsyncBidirectionalStreamingCall (
15191519 path: Com_Apple_Containerization_Sandbox_V3_SandboxContextClientMetadata . Methods. notifyFileSystemEvent. path,
1520- request: request,
1520+ requests: requests,
1521+ callOptions: callOptions ?? self . defaultCallOptions,
1522+ interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ]
1523+ )
1524+ }
1525+
1526+ public func notifyFileSystemEvent< RequestStream> (
1527+ _ requests: RequestStream ,
1528+ callOptions: CallOptions ? = nil
1529+ ) -> GRPCAsyncResponseStream < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > where RequestStream: AsyncSequence & Sendable , RequestStream. Element == Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest {
1530+ return self . performAsyncBidirectionalStreamingCall (
1531+ path: Com_Apple_Containerization_Sandbox_V3_SandboxContextClientMetadata . Methods. notifyFileSystemEvent. path,
1532+ requests: requests,
15211533 callOptions: callOptions ?? self . defaultCallOptions,
15221534 interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ]
15231535 )
@@ -1820,7 +1832,7 @@ public enum Com_Apple_Containerization_Sandbox_V3_SandboxContextClientMetadata {
18201832 public static let notifyFileSystemEvent = GRPCMethodDescriptor (
18211833 name: " NotifyFileSystemEvent " ,
18221834 path: " /com.apple.containerization.sandbox.v3.SandboxContext/NotifyFileSystemEvent " ,
1823- type: GRPCCallType . unary
1835+ type: GRPCCallType . bidirectionalStreaming
18241836 )
18251837 }
18261838}
@@ -1911,7 +1923,7 @@ public protocol Com_Apple_Containerization_Sandbox_V3_SandboxContextProvider: Ca
19111923 func kill( request: Com_Apple_Containerization_Sandbox_V3_KillRequest , context: StatusOnlyCallContext ) -> EventLoopFuture < Com_Apple_Containerization_Sandbox_V3_KillResponse >
19121924
19131925 /// Notify guest of filesystem events from host.
1914- func notifyFileSystemEvent( request : Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest , context: StatusOnlyCallContext ) -> EventLoopFuture < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse >
1926+ func notifyFileSystemEvent( context: StreamingResponseCallContext < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > ) -> EventLoopFuture < ( StreamEvent < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest > ) -> Void >
19151927}
19161928
19171929extension Com_Apple_Containerization_Sandbox_V3_SandboxContextProvider {
@@ -2161,12 +2173,12 @@ extension Com_Apple_Containerization_Sandbox_V3_SandboxContextProvider {
21612173 )
21622174
21632175 case " NotifyFileSystemEvent " :
2164- return UnaryServerHandler (
2176+ return BidirectionalStreamingServerHandler (
21652177 context: context,
21662178 requestDeserializer: ProtobufDeserializer < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest > ( ) ,
21672179 responseSerializer: ProtobufSerializer < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > ( ) ,
21682180 interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ] ,
2169- userFunction : self . notifyFileSystemEvent ( request : context: )
2181+ observerFactory : self . notifyFileSystemEvent ( context: )
21702182 )
21712183
21722184 default :
@@ -2342,9 +2354,10 @@ public protocol Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncProvide
23422354
23432355 /// Notify guest of filesystem events from host.
23442356 func notifyFileSystemEvent(
2345- request: Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest ,
2357+ requestStream: GRPCAsyncRequestStream < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest > ,
2358+ responseStream: GRPCAsyncResponseStreamWriter < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > ,
23462359 context: GRPCAsyncServerCallContext
2347- ) async throws -> Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse
2360+ ) async throws
23482361}
23492362
23502363@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
@@ -2606,7 +2619,7 @@ extension Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncProvider {
26062619 requestDeserializer: ProtobufDeserializer < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventRequest > ( ) ,
26072620 responseSerializer: ProtobufSerializer < Com_Apple_Containerization_Sandbox_V3_NotifyFileSystemEventResponse > ( ) ,
26082621 interceptors: self . interceptors? . makeNotifyFileSystemEventInterceptors ( ) ?? [ ] ,
2609- wrapping: { try await self . notifyFileSystemEvent ( request : $0, context : $1) }
2622+ wrapping: { try await self . notifyFileSystemEvent ( requestStream : $0, responseStream : $1, context : $2 ) }
26102623 )
26112624
26122625 default :
@@ -2921,7 +2934,7 @@ public enum Com_Apple_Containerization_Sandbox_V3_SandboxContextServerMetadata {
29212934 public static let notifyFileSystemEvent = GRPCMethodDescriptor (
29222935 name: " NotifyFileSystemEvent " ,
29232936 path: " /com.apple.containerization.sandbox.v3.SandboxContext/NotifyFileSystemEvent " ,
2924- type: GRPCCallType . unary
2937+ type: GRPCCallType . bidirectionalStreaming
29252938 )
29262939 }
29272940}
0 commit comments