normalization.pb.swift 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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: normalization.proto
  7. //
  8. // For information on using the generated types, please see the documentation:
  9. // https://github.com/apple/swift-protobuf/
  10. // Copyright 2021 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 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. struct Normalization_FunctionName: Sendable {
  34. // SwiftProtobuf.Message conformance is added in an extension below. See the
  35. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  36. // methods supported on all messages.
  37. /// The name of the invoked function.
  38. var functionName: String = String()
  39. var unknownFields = SwiftProtobuf.UnknownStorage()
  40. init() {}
  41. }
  42. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  43. fileprivate let _protobuf_package = "normalization"
  44. extension Normalization_FunctionName: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
  45. static let protoMessageName: String = _protobuf_package + ".FunctionName"
  46. static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}functionName\0")
  47. mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
  48. while let fieldNumber = try decoder.nextFieldNumber() {
  49. // The use of inline closures is to circumvent an issue where the compiler
  50. // allocates stack space for every case branch when no optimizations are
  51. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  52. switch fieldNumber {
  53. case 1: try { try decoder.decodeSingularStringField(value: &self.functionName) }()
  54. default: break
  55. }
  56. }
  57. }
  58. func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
  59. if !self.functionName.isEmpty {
  60. try visitor.visitSingularStringField(value: self.functionName, fieldNumber: 1)
  61. }
  62. try unknownFields.traverse(visitor: &visitor)
  63. }
  64. static func ==(lhs: Normalization_FunctionName, rhs: Normalization_FunctionName) -> Bool {
  65. if lhs.functionName != rhs.functionName {return false}
  66. if lhs.unknownFields != rhs.unknownFields {return false}
  67. return true
  68. }
  69. }