annotations.pb.swift 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // DO NOT EDIT.
  2. //
  3. // Generated by the Swift generator plugin for the protocol buffer compiler.
  4. // Source: google/api/annotations.proto
  5. //
  6. // For information on using the generated types, please see the documentation:
  7. // https://github.com/apple/swift-protobuf/
  8. // Copyright (c) 2015, Google Inc.
  9. //
  10. // Licensed under the Apache License, Version 2.0 (the "License");
  11. // you may not use this file except in compliance with the License.
  12. // You may obtain a copy of the License at
  13. //
  14. // http://www.apache.org/licenses/LICENSE-2.0
  15. //
  16. // Unless required by applicable law or agreed to in writing, software
  17. // distributed under the License is distributed on an "AS IS" BASIS,
  18. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. // See the License for the specific language governing permissions and
  20. // limitations under the License.
  21. import Foundation
  22. import SwiftProtobuf
  23. // If the compiler emits an error on this type, it is because this file
  24. // was generated by a version of the `protoc` Swift plug-in that is
  25. // incompatible with the version of SwiftProtobuf to which you are linking.
  26. // Please ensure that your are building against the same version of the API
  27. // that was used to generate this file.
  28. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
  29. struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
  30. typealias Version = _2
  31. }
  32. // MARK: - Extension support defined in annotations.proto.
  33. extension SwiftProtobuf.Google_Protobuf_MethodOptions {
  34. /// See `HttpRule`.
  35. var Google_Api_http: Google_Api_HttpRule {
  36. get {return getExtensionValue(ext: Google_Api_Extensions_http) ?? Google_Api_HttpRule()}
  37. set {setExtensionValue(ext: Google_Api_Extensions_http, value: newValue)}
  38. }
  39. /// Returns true if extension `Google_Api_Extensions_http`
  40. /// has been explicitly set.
  41. var hasGoogle_Api_http: Bool {
  42. return hasExtensionValue(ext: Google_Api_Extensions_http)
  43. }
  44. /// Clears the value of extension `Google_Api_Extensions_http`.
  45. /// Subsequent reads from it will return its default value.
  46. mutating func clearGoogle_Api_http() {
  47. clearExtensionValue(ext: Google_Api_Extensions_http)
  48. }
  49. }
  50. /// A `SwiftProtobuf.SimpleExtensionMap` that includes all of the extensions defined by
  51. /// this .proto file. It can be used any place an `SwiftProtobuf.ExtensionMap` is needed
  52. /// in parsing, or it can be combined with other `SwiftProtobuf.SimpleExtensionMap`s to create
  53. /// a larger `SwiftProtobuf.SimpleExtensionMap`.
  54. let Google_Api_Annotations_Extensions: SwiftProtobuf.SimpleExtensionMap = [
  55. Google_Api_Extensions_http
  56. ]
  57. /// See `HttpRule`.
  58. let Google_Api_Extensions_http = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Google_Api_HttpRule>, SwiftProtobuf.Google_Protobuf_MethodOptions>(
  59. _protobuf_fieldNumber: 72295728,
  60. fieldName: "google.api.http"
  61. )