empty.pb.swift 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. import Foundation
  24. import SwiftProtobuf
  25. // If the compiler emits an error on this type, it is because this file
  26. // was generated by a version of the `protoc` Swift plug-in that is
  27. // incompatible with the version of SwiftProtobuf to which you are linking.
  28. // Please ensure that you are building against the same version of the API
  29. // that was used to generate this file.
  30. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
  31. struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
  32. typealias Version = _2
  33. }
  34. /// An empty message that you can re-use to avoid defining duplicated empty
  35. /// messages in your project. A typical example is to use it as argument or the
  36. /// return value of a service API. For instance:
  37. ///
  38. /// service Foo {
  39. /// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
  40. /// };
  41. public struct Grpc_Testing_Empty: Sendable {
  42. // SwiftProtobuf.Message conformance is added in an extension below. See the
  43. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  44. // methods supported on all messages.
  45. public var unknownFields = SwiftProtobuf.UnknownStorage()
  46. public init() {}
  47. }
  48. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  49. fileprivate let _protobuf_package = "grpc.testing"
  50. extension Grpc_Testing_Empty: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  51. public static let protoMessageName: String = _protobuf_package + ".Empty"
  52. public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
  53. public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  54. // Load everything into unknown fields
  55. while try decoder.nextFieldNumber() != nil {}
  56. }
  57. public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  58. try unknownFields.traverse(visitor: &visitor)
  59. }
  60. public static func ==(lhs: Grpc_Testing_Empty, rhs: Grpc_Testing_Empty) -> Bool {
  61. if lhs.unknownFields != rhs.unknownFields {return false}
  62. return true
  63. }
  64. }