empty.pb.swift 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // DO NOT EDIT.
  2. // swift-format-ignore-file
  3. // swiftlint:disable all
  4. //
  5. // Generated by the Swift generator plugin for the protocol buffer compiler.
  6. // Source: src/proto/grpc/testing/empty.proto
  7. //
  8. // For information on using the generated types, please see the documentation:
  9. // https://github.com/apple/swift-protobuf/
  10. // Copyright 2015 gRPC authors.
  11. //
  12. // Licensed under the Apache License, Version 2.0 (the "License");
  13. // you may not use this file except in compliance with the License.
  14. // You may obtain a copy of the License at
  15. //
  16. // http://www.apache.org/licenses/LICENSE-2.0
  17. //
  18. // Unless required by applicable law or agreed to in writing, software
  19. // distributed under the License is distributed on an "AS IS" BASIS,
  20. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. // See the License for the specific language governing permissions and
  22. // limitations under the License.
  23. public import SwiftProtobuf
  24. // If the compiler emits an error on this type, it is because this file
  25. // was generated by a version of the `protoc` Swift plug-in that is
  26. // incompatible with the version of SwiftProtobuf to which you are linking.
  27. // Please ensure that you are building against the same version of the API
  28. // that was used to generate this file.
  29. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
  30. struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
  31. typealias Version = _2
  32. }
  33. /// An empty message that you can re-use to avoid defining duplicated empty
  34. /// messages in your project. A typical example is to use it as argument or the
  35. /// return value of a service API. For instance:
  36. ///
  37. /// service Foo {
  38. /// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
  39. /// };
  40. public struct Grpc_Testing_Empty: Sendable {
  41. // SwiftProtobuf.Message conformance is added in an extension below. See the
  42. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  43. // methods supported on all messages.
  44. public var unknownFields = SwiftProtobuf.UnknownStorage()
  45. public init() {}
  46. }
  47. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  48. fileprivate let _protobuf_package = "grpc.testing"
  49. extension Grpc_Testing_Empty: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  50. public static let protoMessageName: String = _protobuf_package + ".Empty"
  51. public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
  52. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  53. // Load everything into unknown fields
  54. while try decoder.nextFieldNumber() != nil {}
  55. }
  56. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  57. try unknownFields.traverse(visitor: &visitor)
  58. }
  59. public static func ==(lhs: Grpc_Testing_Empty, rhs: Grpc_Testing_Empty) -> Bool {
  60. if lhs.unknownFields != rhs.unknownFields {return false}
  61. return true
  62. }
  63. }