/*
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/http.proto
// Protobuf C++ Version: 4.25.1

#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

#include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4025000
#error "This file was generated by a newer version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please update"
#error "your headers."
#endif  // PROTOBUF_VERSION

#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
#error "This file was generated by an older version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please"
#error "regenerate this file with a newer version of protoc."
#endif  // PROTOBUF_MIN_PROTOC_VERSION
#include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto

namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct TableStruct_google_2fapi_2fhttp_2eproto {
  static const ::uint32_t offsets[];
};
extern const ::google::protobuf::internal::DescriptorTable
    descriptor_table_google_2fapi_2fhttp_2eproto;
namespace google {
namespace api {
class CustomHttpPattern;
struct CustomHttpPatternDefaultTypeInternal;
extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_;
class Http;
struct HttpDefaultTypeInternal;
extern HttpDefaultTypeInternal _Http_default_instance_;
class HttpRule;
struct HttpRuleDefaultTypeInternal;
extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_;
}  // namespace api
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace google {
namespace api {

// ===================================================================


// -------------------------------------------------------------------

class CustomHttpPattern final :
    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
 public:
  inline CustomHttpPattern() : CustomHttpPattern(nullptr) {}
  ~CustomHttpPattern() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::google::protobuf::internal::ConstantInitialized);

  inline CustomHttpPattern(const CustomHttpPattern& from)
      : CustomHttpPattern(nullptr, from) {}
  CustomHttpPattern(CustomHttpPattern&& from) noexcept
    : CustomHttpPattern() {
    *this = ::std::move(from);
  }

  inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
    CopyFrom(from);
    return *this;
  }
  inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const CustomHttpPattern& default_instance() {
    return *internal_default_instance();
  }
  static inline const CustomHttpPattern* internal_default_instance() {
    return reinterpret_cast<const CustomHttpPattern*>(
               &_CustomHttpPattern_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    2;

  friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) {
    a.Swap(&b);
  }
  inline void Swap(CustomHttpPattern* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr &&
        GetArena() == other->GetArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(CustomHttpPattern* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  CustomHttpPattern* New(::google::protobuf::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<CustomHttpPattern>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const CustomHttpPattern& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom( const CustomHttpPattern& from) {
    CustomHttpPattern::MergeImpl(*this, from);
  }
  private:
  static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const { return _impl_._cached_size_.Get(); }

  private:
  ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(CustomHttpPattern* other);

  private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "google.api.CustomHttpPattern";
  }
  protected:
  explicit CustomHttpPattern(::google::protobuf::Arena* arena);
  CustomHttpPattern(::google::protobuf::Arena* arena, const CustomHttpPattern& from);
  public:

  static const ClassData _class_data_;
  const ::google::protobuf::Message::ClassData*GetClassData() const final;

  ::google::protobuf::Metadata GetMetadata() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kKindFieldNumber = 1,
    kPathFieldNumber = 2,
  };
  // string kind = 1;
  void clear_kind() ;
  const std::string& kind() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_kind(Arg_&& arg, Args_... args);
  std::string* mutable_kind();
  PROTOBUF_NODISCARD std::string* release_kind();
  void set_allocated_kind(std::string* value);

  private:
  const std::string& _internal_kind() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind(
      const std::string& value);
  std::string* _internal_mutable_kind();

  public:
  // string path = 2;
  void clear_path() ;
  const std::string& path() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_path(Arg_&& arg, Args_... args);
  std::string* mutable_path();
  PROTOBUF_NODISCARD std::string* release_path();
  void set_allocated_path(std::string* value);

  private:
  const std::string& _internal_path() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(
      const std::string& value);
  std::string* _internal_mutable_path();

  public:
  // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
 private:
  class _Internal;

  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      1, 2, 0,
      45, 2>
      _table_;
  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {

        inline explicit constexpr Impl_(
            ::google::protobuf::internal::ConstantInitialized) noexcept;
        inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                              ::google::protobuf::Arena* arena);
        inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                              ::google::protobuf::Arena* arena, const Impl_& from);
    ::google::protobuf::internal::ArenaStringPtr kind_;
    ::google::protobuf::internal::ArenaStringPtr path_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
};// -------------------------------------------------------------------

class HttpRule final :
    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
 public:
  inline HttpRule() : HttpRule(nullptr) {}
  ~HttpRule() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR HttpRule(::google::protobuf::internal::ConstantInitialized);

  inline HttpRule(const HttpRule& from)
      : HttpRule(nullptr, from) {}
  HttpRule(HttpRule&& from) noexcept
    : HttpRule() {
    *this = ::std::move(from);
  }

  inline HttpRule& operator=(const HttpRule& from) {
    CopyFrom(from);
    return *this;
  }
  inline HttpRule& operator=(HttpRule&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const HttpRule& default_instance() {
    return *internal_default_instance();
  }
  enum PatternCase {
    kGet = 2,
    kPut = 3,
    kPost = 4,
    kDelete = 5,
    kPatch = 6,
    kCustom = 8,
    PATTERN_NOT_SET = 0,
  };

  static inline const HttpRule* internal_default_instance() {
    return reinterpret_cast<const HttpRule*>(
               &_HttpRule_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    1;

  friend void swap(HttpRule& a, HttpRule& b) {
    a.Swap(&b);
  }
  inline void Swap(HttpRule* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr &&
        GetArena() == other->GetArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(HttpRule* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  HttpRule* New(::google::protobuf::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<HttpRule>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const HttpRule& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom( const HttpRule& from) {
    HttpRule::MergeImpl(*this, from);
  }
  private:
  static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const { return _impl_._cached_size_.Get(); }

  private:
  ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(HttpRule* other);

  private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "google.api.HttpRule";
  }
  protected:
  explicit HttpRule(::google::protobuf::Arena* arena);
  HttpRule(::google::protobuf::Arena* arena, const HttpRule& from);
  public:

  static const ClassData _class_data_;
  const ::google::protobuf::Message::ClassData*GetClassData() const final;

  ::google::protobuf::Metadata GetMetadata() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kAdditionalBindingsFieldNumber = 11,
    kSelectorFieldNumber = 1,
    kBodyFieldNumber = 7,
    kGetFieldNumber = 2,
    kPutFieldNumber = 3,
    kPostFieldNumber = 4,
    kDeleteFieldNumber = 5,
    kPatchFieldNumber = 6,
    kCustomFieldNumber = 8,
  };
  // repeated .google.api.HttpRule additional_bindings = 11;
  int additional_bindings_size() const;
  private:
  int _internal_additional_bindings_size() const;

  public:
  void clear_additional_bindings() ;
  ::google::api::HttpRule* mutable_additional_bindings(int index);
  ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
      mutable_additional_bindings();
  private:
  const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const;
  ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_additional_bindings();
  public:
  const ::google::api::HttpRule& additional_bindings(int index) const;
  ::google::api::HttpRule* add_additional_bindings();
  const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
      additional_bindings() const;
  // string selector = 1;
  void clear_selector() ;
  const std::string& selector() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_selector(Arg_&& arg, Args_... args);
  std::string* mutable_selector();
  PROTOBUF_NODISCARD std::string* release_selector();
  void set_allocated_selector(std::string* value);

  private:
  const std::string& _internal_selector() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(
      const std::string& value);
  std::string* _internal_mutable_selector();

  public:
  // string body = 7;
  void clear_body() ;
  const std::string& body() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_body(Arg_&& arg, Args_... args);
  std::string* mutable_body();
  PROTOBUF_NODISCARD std::string* release_body();
  void set_allocated_body(std::string* value);

  private:
  const std::string& _internal_body() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(
      const std::string& value);
  std::string* _internal_mutable_body();

  public:
  // string get = 2;
  bool has_get() const;
  void clear_get() ;
  const std::string& get() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_get(Arg_&& arg, Args_... args);
  std::string* mutable_get();
  PROTOBUF_NODISCARD std::string* release_get();
  void set_allocated_get(std::string* value);

  private:
  const std::string& _internal_get() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_get(
      const std::string& value);
  std::string* _internal_mutable_get();

  public:
  // string put = 3;
  bool has_put() const;
  void clear_put() ;
  const std::string& put() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_put(Arg_&& arg, Args_... args);
  std::string* mutable_put();
  PROTOBUF_NODISCARD std::string* release_put();
  void set_allocated_put(std::string* value);

  private:
  const std::string& _internal_put() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_put(
      const std::string& value);
  std::string* _internal_mutable_put();

  public:
  // string post = 4;
  bool has_post() const;
  void clear_post() ;
  const std::string& post() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_post(Arg_&& arg, Args_... args);
  std::string* mutable_post();
  PROTOBUF_NODISCARD std::string* release_post();
  void set_allocated_post(std::string* value);

  private:
  const std::string& _internal_post() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_post(
      const std::string& value);
  std::string* _internal_mutable_post();

  public:
  // string delete = 5;
  bool has_delete_() const;
  void clear_delete_() ;
  const std::string& delete_() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_delete_(Arg_&& arg, Args_... args);
  std::string* mutable_delete_();
  PROTOBUF_NODISCARD std::string* release_delete_();
  void set_allocated_delete_(std::string* value);

  private:
  const std::string& _internal_delete_() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_delete_(
      const std::string& value);
  std::string* _internal_mutable_delete_();

  public:
  // string patch = 6;
  bool has_patch() const;
  void clear_patch() ;
  const std::string& patch() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_patch(Arg_&& arg, Args_... args);
  std::string* mutable_patch();
  PROTOBUF_NODISCARD std::string* release_patch();
  void set_allocated_patch(std::string* value);

  private:
  const std::string& _internal_patch() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_patch(
      const std::string& value);
  std::string* _internal_mutable_patch();

  public:
  // .google.api.CustomHttpPattern custom = 8;
  bool has_custom() const;
  private:
  bool _internal_has_custom() const;

  public:
  void clear_custom() ;
  const ::google::api::CustomHttpPattern& custom() const;
  PROTOBUF_NODISCARD ::google::api::CustomHttpPattern* release_custom();
  ::google::api::CustomHttpPattern* mutable_custom();
  void set_allocated_custom(::google::api::CustomHttpPattern* value);
  void unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value);
  ::google::api::CustomHttpPattern* unsafe_arena_release_custom();

  private:
  const ::google::api::CustomHttpPattern& _internal_custom() const;
  ::google::api::CustomHttpPattern* _internal_mutable_custom();

  public:
  void clear_pattern();
  PatternCase pattern_case() const;
  // @@protoc_insertion_point(class_scope:google.api.HttpRule)
 private:
  class _Internal;
  void set_has_get();
  void set_has_put();
  void set_has_post();
  void set_has_delete_();
  void set_has_patch();
  void set_has_custom();

  inline bool has_pattern() const;
  inline void clear_has_pattern();

  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      3, 9, 2,
      69, 2>
      _table_;
  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {

        inline explicit constexpr Impl_(
            ::google::protobuf::internal::ConstantInitialized) noexcept;
        inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                              ::google::protobuf::Arena* arena);
        inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                              ::google::protobuf::Arena* arena, const Impl_& from);
    ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
    ::google::protobuf::internal::ArenaStringPtr selector_;
    ::google::protobuf::internal::ArenaStringPtr body_;
    union PatternUnion {
      constexpr PatternUnion() : _constinit_{} {}
        ::google::protobuf::internal::ConstantInitialized _constinit_;
      ::google::protobuf::internal::ArenaStringPtr get_;
      ::google::protobuf::internal::ArenaStringPtr put_;
      ::google::protobuf::internal::ArenaStringPtr post_;
      ::google::protobuf::internal::ArenaStringPtr delete__;
      ::google::protobuf::internal::ArenaStringPtr patch_;
      ::google::api::CustomHttpPattern* custom_;
    } pattern_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];

    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
};// -------------------------------------------------------------------

class Http final :
    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ {
 public:
  inline Http() : Http(nullptr) {}
  ~Http() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR Http(::google::protobuf::internal::ConstantInitialized);

  inline Http(const Http& from)
      : Http(nullptr, from) {}
  Http(Http&& from) noexcept
    : Http() {
    *this = ::std::move(from);
  }

  inline Http& operator=(const Http& from) {
    CopyFrom(from);
    return *this;
  }
  inline Http& operator=(Http&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const Http& default_instance() {
    return *internal_default_instance();
  }
  static inline const Http* internal_default_instance() {
    return reinterpret_cast<const Http*>(
               &_Http_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(Http& a, Http& b) {
    a.Swap(&b);
  }
  inline void Swap(Http* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr &&
        GetArena() == other->GetArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Http* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Http* New(::google::protobuf::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<Http>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const Http& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom( const Http& from) {
    Http::MergeImpl(*this, from);
  }
  private:
  static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const { return _impl_._cached_size_.Get(); }

  private:
  ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(Http* other);

  private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "google.api.Http";
  }
  protected:
  explicit Http(::google::protobuf::Arena* arena);
  Http(::google::protobuf::Arena* arena, const Http& from);
  public:

  static const ClassData _class_data_;
  const ::google::protobuf::Message::ClassData*GetClassData() const final;

  ::google::protobuf::Metadata GetMetadata() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kRulesFieldNumber = 1,
    kFullyDecodeReservedExpansionFieldNumber = 2,
  };
  // repeated .google.api.HttpRule rules = 1;
  int rules_size() const;
  private:
  int _internal_rules_size() const;

  public:
  void clear_rules() ;
  ::google::api::HttpRule* mutable_rules(int index);
  ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
      mutable_rules();
  private:
  const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const;
  ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_rules();
  public:
  const ::google::api::HttpRule& rules(int index) const;
  ::google::api::HttpRule* add_rules();
  const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
      rules() const;
  // bool fully_decode_reserved_expansion = 2;
  void clear_fully_decode_reserved_expansion() ;
  bool fully_decode_reserved_expansion() const;
  void set_fully_decode_reserved_expansion(bool value);

  private:
  bool _internal_fully_decode_reserved_expansion() const;
  void _internal_set_fully_decode_reserved_expansion(bool value);

  public:
  // @@protoc_insertion_point(class_scope:google.api.Http)
 private:
  class _Internal;

  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      1, 2, 1,
      0, 2>
      _table_;
  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {

        inline explicit constexpr Impl_(
            ::google::protobuf::internal::ConstantInitialized) noexcept;
        inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                              ::google::protobuf::Arena* arena);
        inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                              ::google::protobuf::Arena* arena, const Impl_& from);
    ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_;
    bool fully_decode_reserved_expansion_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
};

// ===================================================================




// ===================================================================


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// Http

// repeated .google.api.HttpRule rules = 1;
inline int Http::_internal_rules_size() const {
  return _internal_rules().size();
}
inline int Http::rules_size() const {
  return _internal_rules_size();
}
inline void Http::clear_rules() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.rules_.Clear();
}
inline ::google::api::HttpRule* Http::mutable_rules(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:google.api.Http.rules)
  return _internal_mutable_rules()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* Http::mutable_rules()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  return _internal_mutable_rules();
}
inline const ::google::api::HttpRule& Http::rules(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.Http.rules)
  return _internal_rules().Get(index);
}
inline ::google::api::HttpRule* Http::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ::google::api::HttpRule* _add = _internal_mutable_rules()->Add();
  // @@protoc_insertion_point(field_add:google.api.Http.rules)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::rules() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:google.api.Http.rules)
  return _internal_rules();
}
inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>&
Http::_internal_rules() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.rules_;
}
inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>*
Http::_internal_mutable_rules() {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return &_impl_.rules_;
}

// bool fully_decode_reserved_expansion = 2;
inline void Http::clear_fully_decode_reserved_expansion() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.fully_decode_reserved_expansion_ = false;
}
inline bool Http::fully_decode_reserved_expansion() const {
  // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion)
  return _internal_fully_decode_reserved_expansion();
}
inline void Http::set_fully_decode_reserved_expansion(bool value) {
  _internal_set_fully_decode_reserved_expansion(value);
  // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion)
}
inline bool Http::_internal_fully_decode_reserved_expansion() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.fully_decode_reserved_expansion_;
}
inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.fully_decode_reserved_expansion_ = value;
}

// -------------------------------------------------------------------

// HttpRule

// string selector = 1;
inline void HttpRule::clear_selector() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.selector_.ClearToEmpty();
}
inline const std::string& HttpRule::selector() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
  return _internal_selector();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_selector(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.selector_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
}
inline std::string* HttpRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_selector();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
  return _s;
}
inline const std::string& HttpRule::_internal_selector() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.selector_.Get();
}
inline void HttpRule::_internal_set_selector(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.selector_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_selector() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  return _impl_.selector_.Mutable( GetArena());
}
inline std::string* HttpRule::release_selector() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
  return _impl_.selector_.Release();
}
inline void HttpRule::set_allocated_selector(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.selector_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.selector_.IsDefault()) {
          _impl_.selector_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector)
}

// string get = 2;
inline bool HttpRule::has_get() const {
  return pattern_case() == kGet;
}
inline void HttpRule::set_has_get() {
  _impl_._oneof_case_[0] = kGet;
}
inline void HttpRule::clear_get() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() == kGet) {
    _impl_.pattern_.get_.Destroy();
    clear_has_pattern();
  }
}
inline const std::string& HttpRule::get() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.get)
  return _internal_get();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_get(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kGet) {
    clear_pattern();

    set_has_get();
    _impl_.pattern_.get_.InitDefault();
  }
  _impl_.pattern_.get_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
}
inline std::string* HttpRule::mutable_get() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_get();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get)
  return _s;
}
inline const std::string& HttpRule::_internal_get() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  if (pattern_case() != kGet) {
    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  }
  return _impl_.pattern_.get_.Get();
}
inline void HttpRule::_internal_set_get(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kGet) {
    clear_pattern();

    set_has_get();
    _impl_.pattern_.get_.InitDefault();
  }
  _impl_.pattern_.get_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_get() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kGet) {
    clear_pattern();

    set_has_get();
    _impl_.pattern_.get_.InitDefault();
  }
  return _impl_.pattern_.get_.Mutable( GetArena());
}
inline std::string* HttpRule::release_get() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.get)
  if (pattern_case() != kGet) {
    return nullptr;
  }
  clear_has_pattern();
  return _impl_.pattern_.get_.Release();
}
inline void HttpRule::set_allocated_get(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (has_pattern()) {
    clear_pattern();
  }
  if (value != nullptr) {
    set_has_get();
    _impl_.pattern_.get_.InitAllocated(value, GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get)
}

// string put = 3;
inline bool HttpRule::has_put() const {
  return pattern_case() == kPut;
}
inline void HttpRule::set_has_put() {
  _impl_._oneof_case_[0] = kPut;
}
inline void HttpRule::clear_put() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() == kPut) {
    _impl_.pattern_.put_.Destroy();
    clear_has_pattern();
  }
}
inline const std::string& HttpRule::put() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.put)
  return _internal_put();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_put(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPut) {
    clear_pattern();

    set_has_put();
    _impl_.pattern_.put_.InitDefault();
  }
  _impl_.pattern_.put_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
}
inline std::string* HttpRule::mutable_put() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_put();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put)
  return _s;
}
inline const std::string& HttpRule::_internal_put() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  if (pattern_case() != kPut) {
    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  }
  return _impl_.pattern_.put_.Get();
}
inline void HttpRule::_internal_set_put(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPut) {
    clear_pattern();

    set_has_put();
    _impl_.pattern_.put_.InitDefault();
  }
  _impl_.pattern_.put_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_put() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPut) {
    clear_pattern();

    set_has_put();
    _impl_.pattern_.put_.InitDefault();
  }
  return _impl_.pattern_.put_.Mutable( GetArena());
}
inline std::string* HttpRule::release_put() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.put)
  if (pattern_case() != kPut) {
    return nullptr;
  }
  clear_has_pattern();
  return _impl_.pattern_.put_.Release();
}
inline void HttpRule::set_allocated_put(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (has_pattern()) {
    clear_pattern();
  }
  if (value != nullptr) {
    set_has_put();
    _impl_.pattern_.put_.InitAllocated(value, GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put)
}

// string post = 4;
inline bool HttpRule::has_post() const {
  return pattern_case() == kPost;
}
inline void HttpRule::set_has_post() {
  _impl_._oneof_case_[0] = kPost;
}
inline void HttpRule::clear_post() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() == kPost) {
    _impl_.pattern_.post_.Destroy();
    clear_has_pattern();
  }
}
inline const std::string& HttpRule::post() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.post)
  return _internal_post();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_post(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPost) {
    clear_pattern();

    set_has_post();
    _impl_.pattern_.post_.InitDefault();
  }
  _impl_.pattern_.post_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
}
inline std::string* HttpRule::mutable_post() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_post();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post)
  return _s;
}
inline const std::string& HttpRule::_internal_post() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  if (pattern_case() != kPost) {
    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  }
  return _impl_.pattern_.post_.Get();
}
inline void HttpRule::_internal_set_post(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPost) {
    clear_pattern();

    set_has_post();
    _impl_.pattern_.post_.InitDefault();
  }
  _impl_.pattern_.post_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_post() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPost) {
    clear_pattern();

    set_has_post();
    _impl_.pattern_.post_.InitDefault();
  }
  return _impl_.pattern_.post_.Mutable( GetArena());
}
inline std::string* HttpRule::release_post() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.post)
  if (pattern_case() != kPost) {
    return nullptr;
  }
  clear_has_pattern();
  return _impl_.pattern_.post_.Release();
}
inline void HttpRule::set_allocated_post(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (has_pattern()) {
    clear_pattern();
  }
  if (value != nullptr) {
    set_has_post();
    _impl_.pattern_.post_.InitAllocated(value, GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post)
}

// string delete = 5;
inline bool HttpRule::has_delete_() const {
  return pattern_case() == kDelete;
}
inline void HttpRule::set_has_delete_() {
  _impl_._oneof_case_[0] = kDelete;
}
inline void HttpRule::clear_delete_() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() == kDelete) {
    _impl_.pattern_.delete__.Destroy();
    clear_has_pattern();
  }
}
inline const std::string& HttpRule::delete_() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.delete)
  return _internal_delete_();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_delete_(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kDelete) {
    clear_pattern();

    set_has_delete_();
    _impl_.pattern_.delete__.InitDefault();
  }
  _impl_.pattern_.delete__.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
}
inline std::string* HttpRule::mutable_delete_() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_delete_();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete)
  return _s;
}
inline const std::string& HttpRule::_internal_delete_() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  if (pattern_case() != kDelete) {
    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  }
  return _impl_.pattern_.delete__.Get();
}
inline void HttpRule::_internal_set_delete_(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kDelete) {
    clear_pattern();

    set_has_delete_();
    _impl_.pattern_.delete__.InitDefault();
  }
  _impl_.pattern_.delete__.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_delete_() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kDelete) {
    clear_pattern();

    set_has_delete_();
    _impl_.pattern_.delete__.InitDefault();
  }
  return _impl_.pattern_.delete__.Mutable( GetArena());
}
inline std::string* HttpRule::release_delete_() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.delete)
  if (pattern_case() != kDelete) {
    return nullptr;
  }
  clear_has_pattern();
  return _impl_.pattern_.delete__.Release();
}
inline void HttpRule::set_allocated_delete_(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (has_pattern()) {
    clear_pattern();
  }
  if (value != nullptr) {
    set_has_delete_();
    _impl_.pattern_.delete__.InitAllocated(value, GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete)
}

// string patch = 6;
inline bool HttpRule::has_patch() const {
  return pattern_case() == kPatch;
}
inline void HttpRule::set_has_patch() {
  _impl_._oneof_case_[0] = kPatch;
}
inline void HttpRule::clear_patch() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() == kPatch) {
    _impl_.pattern_.patch_.Destroy();
    clear_has_pattern();
  }
}
inline const std::string& HttpRule::patch() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.patch)
  return _internal_patch();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_patch(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPatch) {
    clear_pattern();

    set_has_patch();
    _impl_.pattern_.patch_.InitDefault();
  }
  _impl_.pattern_.patch_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
}
inline std::string* HttpRule::mutable_patch() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_patch();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch)
  return _s;
}
inline const std::string& HttpRule::_internal_patch() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  if (pattern_case() != kPatch) {
    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  }
  return _impl_.pattern_.patch_.Get();
}
inline void HttpRule::_internal_set_patch(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPatch) {
    clear_pattern();

    set_has_patch();
    _impl_.pattern_.patch_.InitDefault();
  }
  _impl_.pattern_.patch_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_patch() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() != kPatch) {
    clear_pattern();

    set_has_patch();
    _impl_.pattern_.patch_.InitDefault();
  }
  return _impl_.pattern_.patch_.Mutable( GetArena());
}
inline std::string* HttpRule::release_patch() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.patch)
  if (pattern_case() != kPatch) {
    return nullptr;
  }
  clear_has_pattern();
  return _impl_.pattern_.patch_.Release();
}
inline void HttpRule::set_allocated_patch(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (has_pattern()) {
    clear_pattern();
  }
  if (value != nullptr) {
    set_has_patch();
    _impl_.pattern_.patch_.InitAllocated(value, GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch)
}

// .google.api.CustomHttpPattern custom = 8;
inline bool HttpRule::has_custom() const {
  return pattern_case() == kCustom;
}
inline bool HttpRule::_internal_has_custom() const {
  return pattern_case() == kCustom;
}
inline void HttpRule::set_has_custom() {
  _impl_._oneof_case_[0] = kCustom;
}
inline void HttpRule::clear_custom() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  if (pattern_case() == kCustom) {
    if (GetArena() == nullptr) {
      delete _impl_.pattern_.custom_;
    }
    clear_has_pattern();
  }
}
inline ::google::api::CustomHttpPattern* HttpRule::release_custom() {
  // @@protoc_insertion_point(field_release:google.api.HttpRule.custom)
  if (pattern_case() == kCustom) {
    clear_has_pattern();
    auto* temp = _impl_.pattern_.custom_;
    if (GetArena() != nullptr) {
      temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
    }
    _impl_.pattern_.custom_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const {
  return pattern_case() == kCustom ? *_impl_.pattern_.custom_ : reinterpret_cast<::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_);
}
inline const ::google::api::CustomHttpPattern& HttpRule::custom() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.custom)
  return _internal_custom();
}
inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() {
  // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom)
  if (pattern_case() == kCustom) {
    clear_has_pattern();
    auto* temp = _impl_.pattern_.custom_;
    _impl_.pattern_.custom_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value) {
  // We rely on the oneof clear method to free the earlier contents
  // of this oneof. We can directly use the pointer we're given to
  // set the new value.
  clear_pattern();
  if (value) {
    set_has_custom();
    _impl_.pattern_.custom_ = value;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom)
}
inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() {
  if (pattern_case() != kCustom) {
    clear_pattern();
    set_has_custom();
    _impl_.pattern_.custom_ = CreateMaybeMessage<::google::api::CustomHttpPattern>(GetArena());
  }
  return _impl_.pattern_.custom_;
}
inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::api::CustomHttpPattern* _msg = _internal_mutable_custom();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom)
  return _msg;
}

// string body = 7;
inline void HttpRule::clear_body() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.body_.ClearToEmpty();
}
inline const std::string& HttpRule::body() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.body)
  return _internal_body();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_body(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.body_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
}
inline std::string* HttpRule::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_body();
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body)
  return _s;
}
inline const std::string& HttpRule::_internal_body() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.body_.Get();
}
inline void HttpRule::_internal_set_body(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.body_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_body() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  return _impl_.body_.Mutable( GetArena());
}
inline std::string* HttpRule::release_body() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.HttpRule.body)
  return _impl_.body_.Release();
}
inline void HttpRule::set_allocated_body(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.body_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.body_.IsDefault()) {
          _impl_.body_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body)
}

// repeated .google.api.HttpRule additional_bindings = 11;
inline int HttpRule::_internal_additional_bindings_size() const {
  return _internal_additional_bindings().size();
}
inline int HttpRule::additional_bindings_size() const {
  return _internal_additional_bindings_size();
}
inline void HttpRule::clear_additional_bindings() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.additional_bindings_.Clear();
}
inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings)
  return _internal_mutable_additional_bindings()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* HttpRule::mutable_additional_bindings()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings)
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  return _internal_mutable_additional_bindings();
}
inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings)
  return _internal_additional_bindings().Get(index);
}
inline ::google::api::HttpRule* HttpRule::add_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ::google::api::HttpRule* _add = _internal_mutable_additional_bindings()->Add();
  // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& HttpRule::additional_bindings() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings)
  return _internal_additional_bindings();
}
inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>&
HttpRule::_internal_additional_bindings() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.additional_bindings_;
}
inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>*
HttpRule::_internal_mutable_additional_bindings() {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return &_impl_.additional_bindings_;
}

inline bool HttpRule::has_pattern() const {
  return pattern_case() != PATTERN_NOT_SET;
}
inline void HttpRule::clear_has_pattern() {
  _impl_._oneof_case_[0] = PATTERN_NOT_SET;
}
inline HttpRule::PatternCase HttpRule::pattern_case() const {
  return HttpRule::PatternCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------

// CustomHttpPattern

// string kind = 1;
inline void CustomHttpPattern::clear_kind() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.kind_.ClearToEmpty();
}
inline const std::string& CustomHttpPattern::kind() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind)
  return _internal_kind();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_kind(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.kind_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
}
inline std::string* CustomHttpPattern::mutable_kind() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_kind();
  // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind)
  return _s;
}
inline const std::string& CustomHttpPattern::_internal_kind() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.kind_.Get();
}
inline void CustomHttpPattern::_internal_set_kind(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.kind_.Set(value, GetArena());
}
inline std::string* CustomHttpPattern::_internal_mutable_kind() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  return _impl_.kind_.Mutable( GetArena());
}
inline std::string* CustomHttpPattern::release_kind() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind)
  return _impl_.kind_.Release();
}
inline void CustomHttpPattern::set_allocated_kind(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.kind_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.kind_.IsDefault()) {
          _impl_.kind_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind)
}

// string path = 2;
inline void CustomHttpPattern::clear_path() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.path_.ClearToEmpty();
}
inline const std::string& CustomHttpPattern::path() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path)
  return _internal_path();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_path(Arg_&& arg,
                                                     Args_... args) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.path_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
}
inline std::string* CustomHttpPattern::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_path();
  // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path)
  return _s;
}
inline const std::string& CustomHttpPattern::_internal_path() const {
  PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  return _impl_.path_.Get();
}
inline void CustomHttpPattern::_internal_set_path(const std::string& value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  _impl_.path_.Set(value, GetArena());
}
inline std::string* CustomHttpPattern::_internal_mutable_path() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  ;
  return _impl_.path_.Mutable( GetArena());
}
inline std::string* CustomHttpPattern::release_path() {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path)
  return _impl_.path_.Release();
}
inline void CustomHttpPattern::set_allocated_path(std::string* value) {
  PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  _impl_.path_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.path_.IsDefault()) {
          _impl_.path_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path)
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace api
}  // namespace google


// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh
