empty.pb.swift 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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: google/protobuf/empty.proto
  7. //
  8. // For information on using the generated types, please see the documentation:
  9. // https://github.com/apple/swift-protobuf/
  10. // Protocol Buffers - Google's data interchange format
  11. // Copyright 2008 Google Inc. All rights reserved.
  12. // https://developers.google.com/protocol-buffers/
  13. //
  14. // Redistribution and use in source and binary forms, with or without
  15. // modification, are permitted provided that the following conditions are
  16. // met:
  17. //
  18. // * Redistributions of source code must retain the above copyright
  19. // notice, this list of conditions and the following disclaimer.
  20. // * Redistributions in binary form must reproduce the above
  21. // copyright notice, this list of conditions and the following disclaimer
  22. // in the documentation and/or other materials provided with the
  23. // distribution.
  24. // * Neither the name of Google Inc. nor the names of its
  25. // contributors may be used to endorse or promote products derived from
  26. // this software without specific prior written permission.
  27. //
  28. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  29. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  30. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  31. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  32. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  33. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  34. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  35. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  36. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  37. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  38. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. // 'import SwiftProtobuf' suppressed, this proto file is meant to be bundled in the runtime.
  40. // If the compiler emits an error on this type, it is because this file
  41. // was generated by a version of the `protoc` Swift plug-in that is
  42. // incompatible with the version of SwiftProtobuf to which you are linking.
  43. // Please ensure that you are building against the same version of the API
  44. // that was used to generate this file.
  45. fileprivate struct _GeneratedWithProtocGenSwiftVersion: ProtobufAPIVersionCheck {
  46. struct _2: ProtobufAPIVersion_2 {}
  47. typealias Version = _2
  48. }
  49. /// A generic empty message that you can re-use to avoid defining duplicated
  50. /// empty messages in your APIs. A typical example is to use it as the request
  51. /// or the response type of an API method. For instance:
  52. ///
  53. /// service Foo {
  54. /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
  55. /// }
  56. public struct Google_Protobuf_Empty: Sendable {
  57. // SwiftProtobuf.Message conformance is added in an extension below. See the
  58. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  59. // methods supported on all messages.
  60. public var unknownFields = UnknownStorage()
  61. public init() {}
  62. }
  63. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  64. fileprivate let _protobuf_package = "google.protobuf"
  65. extension Google_Protobuf_Empty: Message, _MessageImplementationBase, _ProtoNameProviding {
  66. public static let protoMessageName: String = _protobuf_package + ".Empty"
  67. public static let _protobuf_nameMap = _NameMap()
  68. public mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  69. // Load everything into unknown fields
  70. while try decoder.nextFieldNumber() != nil {}
  71. }
  72. public func traverse<V: Visitor>(visitor: inout V) throws {
  73. try unknownFields.traverse(visitor: &visitor)
  74. }
  75. public static func ==(lhs: Google_Protobuf_Empty, rhs: Google_Protobuf_Empty) -> Bool {
  76. if lhs.unknownFields != rhs.unknownFields {return false}
  77. return true
  78. }
  79. }