@@ -43,6 +43,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
43
43
let expectedSwift =
44
44
"""
45
45
/// Documentation for ServiceA
46
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
46
47
public protocol NamespaceA_ServiceA_ClientProtocol: Sendable {
47
48
/// Documentation for MethodA
48
49
func methodA<R>(
@@ -53,6 +54,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
53
54
_ body: @Sendable @escaping (GRPCCore.ClientResponse<NamespaceA_ServiceAResponse>) async throws -> R
54
55
) async throws -> R where R: Sendable
55
56
}
57
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
56
58
extension NamespaceA_ServiceA.ClientProtocol {
57
59
public func methodA<R>(
58
60
request: GRPCCore.ClientRequest<NamespaceA_ServiceARequest>,
@@ -70,6 +72,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
70
72
)
71
73
}
72
74
}
75
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
73
76
extension NamespaceA_ServiceA.ClientProtocol {
74
77
/// Documentation for MethodA
75
78
public func methodA<Result>(
@@ -92,6 +95,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
92
95
}
93
96
}
94
97
/// Documentation for ServiceA
98
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
95
99
public struct NamespaceA_ServiceA_Client: NamespaceA_ServiceA.ClientProtocol {
96
100
private let client: GRPCCore.GRPCClient
97
101
@@ -146,6 +150,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
146
150
let expectedSwift =
147
151
"""
148
152
/// Documentation for ServiceA
153
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
149
154
public protocol NamespaceA_ServiceA_ClientProtocol: Sendable {
150
155
/// Documentation for MethodA
151
156
func methodA<R>(
@@ -156,6 +161,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
156
161
_ body: @Sendable @escaping (GRPCCore.ClientResponse<NamespaceA_ServiceAResponse>) async throws -> R
157
162
) async throws -> R where R: Sendable
158
163
}
164
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
159
165
extension NamespaceA_ServiceA.ClientProtocol {
160
166
public func methodA<R>(
161
167
request: GRPCCore.StreamingClientRequest<NamespaceA_ServiceARequest>,
@@ -173,6 +179,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
173
179
)
174
180
}
175
181
}
182
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
176
183
extension NamespaceA_ServiceA.ClientProtocol {
177
184
/// Documentation for MethodA
178
185
public func methodA<Result>(
@@ -195,6 +202,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
195
202
}
196
203
}
197
204
/// Documentation for ServiceA
205
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
198
206
public struct NamespaceA_ServiceA_Client: NamespaceA_ServiceA.ClientProtocol {
199
207
private let client: GRPCCore.GRPCClient
200
208
@@ -249,6 +257,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
249
257
let expectedSwift =
250
258
"""
251
259
/// Documentation for ServiceA
260
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
252
261
public protocol NamespaceA_ServiceA_ClientProtocol: Sendable {
253
262
/// Documentation for MethodA
254
263
func methodA<R>(
@@ -259,6 +268,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
259
268
_ body: @Sendable @escaping (GRPCCore.StreamingClientResponse<NamespaceA_ServiceAResponse>) async throws -> R
260
269
) async throws -> R where R: Sendable
261
270
}
271
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
262
272
extension NamespaceA_ServiceA.ClientProtocol {
263
273
public func methodA<R>(
264
274
request: GRPCCore.ClientRequest<NamespaceA_ServiceARequest>,
@@ -274,6 +284,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
274
284
)
275
285
}
276
286
}
287
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
277
288
extension NamespaceA_ServiceA.ClientProtocol {
278
289
/// Documentation for MethodA
279
290
public func methodA<Result>(
@@ -294,6 +305,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
294
305
}
295
306
}
296
307
/// Documentation for ServiceA
308
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
297
309
public struct NamespaceA_ServiceA_Client: NamespaceA_ServiceA.ClientProtocol {
298
310
private let client: GRPCCore.GRPCClient
299
311
@@ -346,6 +358,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
346
358
let expectedSwift =
347
359
"""
348
360
/// Documentation for ServiceA
361
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
349
362
public protocol NamespaceA_ServiceA_ClientProtocol: Sendable {
350
363
/// Documentation for MethodA
351
364
func methodA<R>(
@@ -356,6 +369,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
356
369
_ body: @Sendable @escaping (GRPCCore.StreamingClientResponse<NamespaceA_ServiceAResponse>) async throws -> R
357
370
) async throws -> R where R: Sendable
358
371
}
372
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
359
373
extension NamespaceA_ServiceA.ClientProtocol {
360
374
public func methodA<R>(
361
375
request: GRPCCore.StreamingClientRequest<NamespaceA_ServiceARequest>,
@@ -371,6 +385,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
371
385
)
372
386
}
373
387
}
388
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
374
389
extension NamespaceA_ServiceA.ClientProtocol {
375
390
/// Documentation for MethodA
376
391
public func methodA<Result>(
@@ -391,6 +406,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
391
406
}
392
407
}
393
408
/// Documentation for ServiceA
409
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
394
410
public struct NamespaceA_ServiceA_Client: NamespaceA_ServiceA.ClientProtocol {
395
411
private let client: GRPCCore.GRPCClient
396
412
@@ -451,6 +467,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
451
467
let expectedSwift =
452
468
"""
453
469
/// Documentation for ServiceA
470
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
454
471
package protocol NamespaceA_ServiceA_ClientProtocol: Sendable {
455
472
/// Documentation for MethodA
456
473
func methodA<R>(
@@ -470,6 +487,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
470
487
_ body: @Sendable @escaping (GRPCCore.StreamingClientResponse<NamespaceA_ServiceAResponse>) async throws -> R
471
488
) async throws -> R where R: Sendable
472
489
}
490
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
473
491
extension NamespaceA_ServiceA.ClientProtocol {
474
492
package func methodA<R>(
475
493
request: GRPCCore.StreamingClientRequest<NamespaceA_ServiceARequest>,
@@ -501,6 +519,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
501
519
)
502
520
}
503
521
}
522
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
504
523
extension NamespaceA_ServiceA.ClientProtocol {
505
524
/// Documentation for MethodA
506
525
package func methodA<Result>(
@@ -541,6 +560,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
541
560
}
542
561
}
543
562
/// Documentation for ServiceA
563
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
544
564
package struct NamespaceA_ServiceA_Client: NamespaceA_ServiceA.ClientProtocol {
545
565
private let client: GRPCCore.GRPCClient
546
566
@@ -613,6 +633,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
613
633
let expectedSwift =
614
634
"""
615
635
/// Documentation for ServiceA
636
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
616
637
internal protocol ServiceA_ClientProtocol: Sendable {
617
638
/// Documentation for MethodA
618
639
func methodA<R>(
@@ -623,6 +644,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
623
644
_ body: @Sendable @escaping (GRPCCore.ClientResponse<ServiceAResponse>) async throws -> R
624
645
) async throws -> R where R: Sendable
625
646
}
647
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
626
648
extension ServiceA.ClientProtocol {
627
649
internal func methodA<R>(
628
650
request: GRPCCore.ClientRequest<ServiceARequest>,
@@ -640,6 +662,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
640
662
)
641
663
}
642
664
}
665
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
643
666
extension ServiceA.ClientProtocol {
644
667
/// Documentation for MethodA
645
668
internal func methodA<Result>(
@@ -662,6 +685,7 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
662
685
}
663
686
}
664
687
/// Documentation for ServiceA
688
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
665
689
internal struct ServiceA_Client: ServiceA.ClientProtocol {
666
690
private let client: GRPCCore.GRPCClient
667
691
@@ -722,12 +746,16 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
722
746
let expectedSwift =
723
747
"""
724
748
/// Documentation for ServiceA
749
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
725
750
public protocol NamespaceA_ServiceA_ClientProtocol: Sendable {}
751
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
726
752
extension NamespaceA_ServiceA.ClientProtocol {
727
753
}
754
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
728
755
extension NamespaceA_ServiceA.ClientProtocol {
729
756
}
730
757
/// Documentation for ServiceA
758
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
731
759
public struct NamespaceA_ServiceA_Client: NamespaceA_ServiceA.ClientProtocol {
732
760
private let client: GRPCCore.GRPCClient
733
761
@@ -738,14 +766,18 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase {
738
766
/// Documentation for ServiceB
739
767
///
740
768
/// Line 2
769
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
741
770
public protocol ServiceB_ClientProtocol: Sendable {}
771
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
742
772
extension ServiceB.ClientProtocol {
743
773
}
774
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
744
775
extension ServiceB.ClientProtocol {
745
776
}
746
777
/// Documentation for ServiceB
747
778
///
748
779
/// Line 2
780
+ @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
749
781
public struct ServiceB_Client: ServiceB.ClientProtocol {
750
782
private let client: GRPCCore.GRPCClient
751
783
0 commit comments