@@ -70,6 +70,7 @@ struct ProtobufCodeGeneratorTests {
70
70
// MARK: - test.TestService
71
71
72
72
/// Namespace containing generated types for the " test.TestService " service.
73
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
73
74
\( access) enum Test_TestService {
74
75
/// Service descriptor for the " test.TestService " service.
75
76
\( access) static let descriptor = GRPCCore.ServiceDescriptor(fullyQualifiedService: " test.TestService " )
@@ -133,13 +134,15 @@ struct ProtobufCodeGeneratorTests {
133
134
}
134
135
}
135
136
137
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
136
138
extension GRPCCore.ServiceDescriptor {
137
139
/// Service descriptor for the " test.TestService " service.
138
140
\( access) static let test_TestService = GRPCCore.ServiceDescriptor(fullyQualifiedService: " test.TestService " )
139
141
}
140
142
141
143
// MARK: test.TestService (server)
142
144
145
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
143
146
extension Test_TestService {
144
147
/// Streaming variant of the service protocol for the " test.TestService " service.
145
148
///
@@ -401,6 +404,7 @@ struct ProtobufCodeGeneratorTests {
401
404
}
402
405
403
406
// Default implementation of 'registerMethods(with:)'.
407
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
404
408
extension Test_TestService.StreamingServiceProtocol {
405
409
\( access) func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
406
410
router.registerHandler(
@@ -451,6 +455,7 @@ struct ProtobufCodeGeneratorTests {
451
455
}
452
456
453
457
// Default implementation of streaming methods from 'StreamingServiceProtocol'.
458
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
454
459
extension Test_TestService.ServiceProtocol {
455
460
\( access) func unary(
456
461
request: GRPCCore.StreamingServerRequest<Test_TestInput>,
@@ -487,6 +492,7 @@ struct ProtobufCodeGeneratorTests {
487
492
}
488
493
489
494
// Default implementation of methods from 'ServiceProtocol'.
495
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
490
496
extension Test_TestService.SimpleServiceProtocol {
491
497
\( access) func unary(
492
498
request: GRPCCore.ServerRequest<Test_TestInput>,
@@ -551,6 +557,7 @@ struct ProtobufCodeGeneratorTests {
551
557
552
558
// MARK: test.TestService (client)
553
559
560
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
554
561
extension Test_TestService {
555
562
/// Generated client protocol for the " test.TestService " service.
556
563
///
@@ -809,6 +816,7 @@ struct ProtobufCodeGeneratorTests {
809
816
}
810
817
811
818
// Helpers providing default arguments to 'ClientProtocol' methods.
819
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
812
820
extension Test_TestService.ClientProtocol {
813
821
/// Call the " Unary " method.
814
822
///
@@ -924,6 +932,7 @@ struct ProtobufCodeGeneratorTests {
924
932
}
925
933
926
934
// Helpers providing sugared APIs for 'ClientProtocol' methods.
935
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
927
936
extension Test_TestService.ClientProtocol {
928
937
/// Call the " Unary " method.
929
938
///
0 commit comments