|
@@ -303,7 +303,7 @@ internal final class Echo_EchoUpdateCall {
|
|
|
|
|
|
|
|
/// Call methods of this class to make API calls.
|
|
/// Call methods of this class to make API calls.
|
|
|
internal final class Echo_EchoService {
|
|
internal final class Echo_EchoService {
|
|
|
- public var channel: Channel
|
|
|
|
|
|
|
+ public private(set) var channel: Channel
|
|
|
|
|
|
|
|
/// This metadata will be sent with all requests.
|
|
/// This metadata will be sent with all requests.
|
|
|
internal var metadata : Metadata
|
|
internal var metadata : Metadata
|
|
@@ -320,6 +320,16 @@ internal final class Echo_EchoService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /// This property allows the service timeout to be overridden.
|
|
|
|
|
+ internal var timeout : TimeInterval {
|
|
|
|
|
+ get {
|
|
|
|
|
+ return self.channel.timeout
|
|
|
|
|
+ }
|
|
|
|
|
+ set {
|
|
|
|
|
+ self.channel.timeout = newValue
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/// Create a client.
|
|
/// Create a client.
|
|
|
internal init(address: String, secure: Bool = true) {
|
|
internal init(address: String, secure: Bool = true) {
|
|
|
gRPC.initialize()
|
|
gRPC.initialize()
|