Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ let dependencies: [Package.Dependency] = [
),
.package(
url: "https://github.com/apple/swift-protobuf.git",
from: "1.31.0"
from: "1.39.0",
// Opt-out of default traits to avoid pulling in full Foundation from `BinaryDelimitedStreams`
traits: []
),
.package(
url: "https://github.com/apple/swift-distributed-tracing.git",
Expand Down
79 changes: 40 additions & 39 deletions Sources/GRPCHealthService/Generated/health.grpc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// Source: health.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/grpc/grpc-swift
// https://github.com/grpc/grpc-swift-2

package import GRPCCore
internal import GRPCProtobuf
Expand Down Expand Up @@ -100,8 +100,9 @@ extension Grpc_Health_V1_Health {
/// This protocol is the lowest-level of the service protocols generated for this service
/// giving you the most flexibility over the implementation of your service. This comes at
/// the cost of more verbose and less strict APIs. Each RPC requires you to implement it in
/// terms of a request stream and response stream. Where only a single request or response
/// message is expected, you are responsible for enforcing this invariant is maintained.
/// terms of a request stream and response stream. Where the RPC expects only a single
/// request or response message, you are responsible for ensuring your implementation
/// maintains this invariant.
///
/// Where possible, prefer using the stricter, less-verbose ``ServiceProtocol``
/// or ``SimpleServiceProtocol`` instead.
Expand Down Expand Up @@ -551,9 +552,9 @@ extension Grpc_Health_V1_Health {
/// - serializer: A serializer for `Grpc_Health_V1_HealthCheckRequest` messages.
/// - deserializer: A deserializer for `Grpc_Health_V1_HealthCheckResponse` messages.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
func check<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthCheckRequest>,
Expand Down Expand Up @@ -584,9 +585,9 @@ extension Grpc_Health_V1_Health {
/// - serializer: A serializer for `Grpc_Health_V1_HealthListRequest` messages.
/// - deserializer: A deserializer for `Grpc_Health_V1_HealthListResponse` messages.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
func list<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthListRequest>,
Expand Down Expand Up @@ -621,9 +622,9 @@ extension Grpc_Health_V1_Health {
/// - serializer: A serializer for `Grpc_Health_V1_HealthCheckRequest` messages.
/// - deserializer: A deserializer for `Grpc_Health_V1_HealthCheckResponse` messages.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
func watch<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthCheckRequest>,
Expand Down Expand Up @@ -673,9 +674,9 @@ extension Grpc_Health_V1_Health {
/// - serializer: A serializer for `Grpc_Health_V1_HealthCheckRequest` messages.
/// - deserializer: A deserializer for `Grpc_Health_V1_HealthCheckResponse` messages.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func check<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthCheckRequest>,
Expand Down Expand Up @@ -717,9 +718,9 @@ extension Grpc_Health_V1_Health {
/// - serializer: A serializer for `Grpc_Health_V1_HealthListRequest` messages.
/// - deserializer: A deserializer for `Grpc_Health_V1_HealthListResponse` messages.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func list<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthListRequest>,
Expand Down Expand Up @@ -765,9 +766,9 @@ extension Grpc_Health_V1_Health {
/// - serializer: A serializer for `Grpc_Health_V1_HealthCheckRequest` messages.
/// - deserializer: A deserializer for `Grpc_Health_V1_HealthCheckResponse` messages.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func watch<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthCheckRequest>,
Expand Down Expand Up @@ -806,9 +807,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
/// - Parameters:
/// - request: A request containing a single `Grpc_Health_V1_HealthCheckRequest` message.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func check<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthCheckRequest>,
Expand Down Expand Up @@ -845,9 +846,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
/// - Parameters:
/// - request: A request containing a single `Grpc_Health_V1_HealthListRequest` message.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func list<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthListRequest>,
Expand Down Expand Up @@ -888,9 +889,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
/// - Parameters:
/// - request: A request containing a single `Grpc_Health_V1_HealthCheckRequest` message.
/// - options: Options to apply to this RPC.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func watch<Result>(
request: GRPCCore.ClientRequest<Grpc_Health_V1_HealthCheckRequest>,
Expand Down Expand Up @@ -926,9 +927,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
/// - message: request message to send.
/// - metadata: Additional metadata to send, defaults to empty.
/// - options: Options to apply to this RPC, defaults to `.defaults`.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func check<Result>(
_ message: Grpc_Health_V1_HealthCheckRequest,
Expand Down Expand Up @@ -969,9 +970,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
/// - message: request message to send.
/// - metadata: Additional metadata to send, defaults to empty.
/// - options: Options to apply to this RPC, defaults to `.defaults`.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func list<Result>(
_ message: Grpc_Health_V1_HealthListRequest,
Expand Down Expand Up @@ -1016,9 +1017,9 @@ extension Grpc_Health_V1_Health.ClientProtocol {
/// - message: request message to send.
/// - metadata: Additional metadata to send, defaults to empty.
/// - options: Options to apply to this RPC, defaults to `.defaults`.
/// - handleResponse: A closure which handles the response, the result of which is
/// returned to the caller. Returning from the closure will cancel the RPC if it
/// hasn't already finished.
/// - handleResponse: A closure which handles the response and returns its result to
/// the caller. Returning from the closure will cancel the RPC if it hasn't
/// already finished.
/// - Returns: The result of `handleResponse`.
package func watch<Result>(
_ message: Grpc_Health_V1_HealthCheckRequest,
Expand Down
2 changes: 1 addition & 1 deletion Sources/GRPCInteropTests/Generated/empty.grpc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
// Source: src/proto/grpc/testing/empty.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/grpc/grpc-swift
// https://github.com/grpc/grpc-swift-2

// This file contained no services.
7 changes: 4 additions & 3 deletions Sources/GRPCInteropTests/Generated/empty_service.grpc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// Source: src/proto/grpc/testing/empty_service.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/grpc/grpc-swift
// https://github.com/grpc/grpc-swift-2

public import GRPCCore
internal import GRPCProtobuf
Expand Down Expand Up @@ -54,8 +54,9 @@ extension Grpc_Testing_EmptyService {
/// This protocol is the lowest-level of the service protocols generated for this service
/// giving you the most flexibility over the implementation of your service. This comes at
/// the cost of more verbose and less strict APIs. Each RPC requires you to implement it in
/// terms of a request stream and response stream. Where only a single request or response
/// message is expected, you are responsible for enforcing this invariant is maintained.
/// terms of a request stream and response stream. Where the RPC expects only a single
/// request or response message, you are responsible for ensuring your implementation
/// maintains this invariant.
///
/// Where possible, prefer using the stricter, less-verbose ``ServiceProtocol``
/// or ``SimpleServiceProtocol`` instead.
Expand Down
2 changes: 1 addition & 1 deletion Sources/GRPCInteropTests/Generated/messages.grpc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
// Source: src/proto/grpc/testing/messages.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/grpc/grpc-swift
// https://github.com/grpc/grpc-swift-2

// This file contained no services.
Loading
Loading