annotations.pb.swift 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // DO NOT EDIT.
  2. // swift-format-ignore-file
  3. //
  4. // Generated by the Swift generator plugin for the protocol buffer compiler.
  5. // Source: google/api/annotations.proto
  6. //
  7. // For information on using the generated types, please see the documentation:
  8. // https://github.com/apple/swift-protobuf/
  9. // Copyright 2015 Google LLC
  10. //
  11. // Licensed under the Apache License, Version 2.0 (the "License");
  12. // you may not use this file except in compliance with the License.
  13. // You may obtain a copy of the License at
  14. //
  15. // http://www.apache.org/licenses/LICENSE-2.0
  16. //
  17. // Unless required by applicable law or agreed to in writing, software
  18. // distributed under the License is distributed on an "AS IS" BASIS,
  19. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. // See the License for the specific language governing permissions and
  21. // limitations under the License.
  22. import Foundation
  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. // MARK: - Extension support defined in annotations.proto.
  34. // MARK: - Extension Properties
  35. // Swift Extensions on the exteneded Messages to add easy access to the declared
  36. // extension fields. The names are based on the extension field name from the proto
  37. // declaration. To avoid naming collisions, the names are prefixed with the name of
  38. // the scope where the extend directive occurs.
  39. extension SwiftProtobuf.Google_Protobuf_MethodOptions {
  40. /// See `HttpRule`.
  41. var Google_Api_http: Google_Api_HttpRule {
  42. get {return getExtensionValue(ext: Google_Api_Extensions_http) ?? Google_Api_HttpRule()}
  43. set {setExtensionValue(ext: Google_Api_Extensions_http, value: newValue)}
  44. }
  45. /// Returns true if extension `Google_Api_Extensions_http`
  46. /// has been explicitly set.
  47. var hasGoogle_Api_http: Bool {
  48. return hasExtensionValue(ext: Google_Api_Extensions_http)
  49. }
  50. /// Clears the value of extension `Google_Api_Extensions_http`.
  51. /// Subsequent reads from it will return its default value.
  52. mutating func clearGoogle_Api_http() {
  53. clearExtensionValue(ext: Google_Api_Extensions_http)
  54. }
  55. }
  56. // MARK: - File's ExtensionMap: Google_Api_Annotations_Extensions
  57. /// A `SwiftProtobuf.SimpleExtensionMap` that includes all of the extensions defined by
  58. /// this .proto file. It can be used any place an `SwiftProtobuf.ExtensionMap` is needed
  59. /// in parsing, or it can be combined with other `SwiftProtobuf.SimpleExtensionMap`s to create
  60. /// a larger `SwiftProtobuf.SimpleExtensionMap`.
  61. let Google_Api_Annotations_Extensions: SwiftProtobuf.SimpleExtensionMap = [
  62. Google_Api_Extensions_http
  63. ]
  64. // Extension Objects - The only reason these might be needed is when manually
  65. // constructing a `SimpleExtensionMap`, otherwise, use the above _Extension Properties_
  66. // accessors for the extension fields on the messages directly.
  67. /// See `HttpRule`.
  68. let Google_Api_Extensions_http = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Google_Api_HttpRule>, SwiftProtobuf.Google_Protobuf_MethodOptions>(
  69. _protobuf_fieldNumber: 72295728,
  70. fieldName: "google.api.http"
  71. )