|
|
@@ -26,12 +26,13 @@ import GRPCCore
|
|
|
import GRPCProtobuf
|
|
|
|
|
|
internal enum Control {
|
|
|
+ internal static let descriptor = ServiceDescriptor.Control
|
|
|
internal enum Method {
|
|
|
internal enum Unary {
|
|
|
internal typealias Input = ControlInput
|
|
|
internal typealias Output = ControlOutput
|
|
|
internal static let descriptor = MethodDescriptor(
|
|
|
- service: "Control",
|
|
|
+ service: Control.descriptor.fullyQualifiedService,
|
|
|
method: "Unary"
|
|
|
)
|
|
|
}
|
|
|
@@ -39,7 +40,7 @@ internal enum Control {
|
|
|
internal typealias Input = ControlInput
|
|
|
internal typealias Output = ControlOutput
|
|
|
internal static let descriptor = MethodDescriptor(
|
|
|
- service: "Control",
|
|
|
+ service: Control.descriptor.fullyQualifiedService,
|
|
|
method: "ServerStream"
|
|
|
)
|
|
|
}
|
|
|
@@ -47,7 +48,7 @@ internal enum Control {
|
|
|
internal typealias Input = ControlInput
|
|
|
internal typealias Output = ControlOutput
|
|
|
internal static let descriptor = MethodDescriptor(
|
|
|
- service: "Control",
|
|
|
+ service: Control.descriptor.fullyQualifiedService,
|
|
|
method: "ClientStream"
|
|
|
)
|
|
|
}
|
|
|
@@ -55,7 +56,7 @@ internal enum Control {
|
|
|
internal typealias Input = ControlInput
|
|
|
internal typealias Output = ControlOutput
|
|
|
internal static let descriptor = MethodDescriptor(
|
|
|
- service: "Control",
|
|
|
+ service: Control.descriptor.fullyQualifiedService,
|
|
|
method: "BidiStream"
|
|
|
)
|
|
|
}
|
|
|
@@ -76,6 +77,13 @@ internal enum Control {
|
|
|
internal typealias Client = ControlClient
|
|
|
}
|
|
|
|
|
|
+extension ServiceDescriptor {
|
|
|
+ internal static let Control = Self(
|
|
|
+ package: "",
|
|
|
+ service: "Control"
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
/// A controllable service for testing.
|
|
|
///
|
|
|
/// The control service has one RPC of each kind, the input to each RPC controls
|