github.com/Tyktechnologies/tyk@v2.9.5+incompatible/coprocess/bindings/cpp/coprocess_common.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: coprocess_common.proto 3 4 #ifndef PROTOBUF_coprocess_5fcommon_2eproto__INCLUDED 5 #define PROTOBUF_coprocess_5fcommon_2eproto__INCLUDED 6 7 #include <string> 8 9 #include <google/protobuf/stubs/common.h> 10 11 #if GOOGLE_PROTOBUF_VERSION < 3001000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 14 #error your headers. 15 #endif 16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 20 #endif 21 22 #include <google/protobuf/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 31 // @@protoc_insertion_point(includes) 32 33 namespace coprocess { 34 35 // Internal implementation detail -- do not call these. 36 void protobuf_AddDesc_coprocess_5fcommon_2eproto(); 37 void protobuf_InitDefaults_coprocess_5fcommon_2eproto(); 38 void protobuf_AssignDesc_coprocess_5fcommon_2eproto(); 39 void protobuf_ShutdownFile_coprocess_5fcommon_2eproto(); 40 41 class StringSlice; 42 43 enum HookType { 44 Unknown = 0, 45 Pre = 1, 46 Post = 2, 47 PostKeyAuth = 3, 48 CustomKeyCheck = 4, 49 HookType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 50 HookType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 51 }; 52 bool HookType_IsValid(int value); 53 const HookType HookType_MIN = Unknown; 54 const HookType HookType_MAX = CustomKeyCheck; 55 const int HookType_ARRAYSIZE = HookType_MAX + 1; 56 57 const ::google::protobuf::EnumDescriptor* HookType_descriptor(); 58 inline const ::std::string& HookType_Name(HookType value) { 59 return ::google::protobuf::internal::NameOfEnum( 60 HookType_descriptor(), value); 61 } 62 inline bool HookType_Parse( 63 const ::std::string& name, HookType* value) { 64 return ::google::protobuf::internal::ParseNamedEnum<HookType>( 65 HookType_descriptor(), name, value); 66 } 67 // =================================================================== 68 69 class StringSlice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:coprocess.StringSlice) */ { 70 public: 71 StringSlice(); 72 virtual ~StringSlice(); 73 74 StringSlice(const StringSlice& from); 75 76 inline StringSlice& operator=(const StringSlice& from) { 77 CopyFrom(from); 78 return *this; 79 } 80 81 static const ::google::protobuf::Descriptor* descriptor(); 82 static const StringSlice& default_instance(); 83 84 static const StringSlice* internal_default_instance(); 85 86 void Swap(StringSlice* other); 87 88 // implements Message ---------------------------------------------- 89 90 inline StringSlice* New() const { return New(NULL); } 91 92 StringSlice* New(::google::protobuf::Arena* arena) const; 93 void CopyFrom(const ::google::protobuf::Message& from); 94 void MergeFrom(const ::google::protobuf::Message& from); 95 void CopyFrom(const StringSlice& from); 96 void MergeFrom(const StringSlice& from); 97 void Clear(); 98 bool IsInitialized() const; 99 100 size_t ByteSizeLong() const; 101 bool MergePartialFromCodedStream( 102 ::google::protobuf::io::CodedInputStream* input); 103 void SerializeWithCachedSizes( 104 ::google::protobuf::io::CodedOutputStream* output) const; 105 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 106 bool deterministic, ::google::protobuf::uint8* output) const; 107 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { 108 return InternalSerializeWithCachedSizesToArray(false, output); 109 } 110 int GetCachedSize() const { return _cached_size_; } 111 private: 112 void SharedCtor(); 113 void SharedDtor(); 114 void SetCachedSize(int size) const; 115 void InternalSwap(StringSlice* other); 116 void UnsafeMergeFrom(const StringSlice& from); 117 private: 118 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 119 return _internal_metadata_.arena(); 120 } 121 inline void* MaybeArenaPtr() const { 122 return _internal_metadata_.raw_arena_ptr(); 123 } 124 public: 125 126 ::google::protobuf::Metadata GetMetadata() const; 127 128 // nested types ---------------------------------------------------- 129 130 // accessors ------------------------------------------------------- 131 132 // repeated string items = 1; 133 int items_size() const; 134 void clear_items(); 135 static const int kItemsFieldNumber = 1; 136 const ::std::string& items(int index) const; 137 ::std::string* mutable_items(int index); 138 void set_items(int index, const ::std::string& value); 139 void set_items(int index, const char* value); 140 void set_items(int index, const char* value, size_t size); 141 ::std::string* add_items(); 142 void add_items(const ::std::string& value); 143 void add_items(const char* value); 144 void add_items(const char* value, size_t size); 145 const ::google::protobuf::RepeatedPtrField< ::std::string>& items() const; 146 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_items(); 147 148 // @@protoc_insertion_point(class_scope:coprocess.StringSlice) 149 private: 150 151 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 152 ::google::protobuf::RepeatedPtrField< ::std::string> items_; 153 mutable int _cached_size_; 154 friend void protobuf_InitDefaults_coprocess_5fcommon_2eproto_impl(); 155 friend void protobuf_AddDesc_coprocess_5fcommon_2eproto_impl(); 156 friend void protobuf_AssignDesc_coprocess_5fcommon_2eproto(); 157 friend void protobuf_ShutdownFile_coprocess_5fcommon_2eproto(); 158 159 void InitAsDefaultInstance(); 160 }; 161 extern ::google::protobuf::internal::ExplicitlyConstructed<StringSlice> StringSlice_default_instance_; 162 163 // =================================================================== 164 165 166 // =================================================================== 167 168 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 169 // StringSlice 170 171 // repeated string items = 1; 172 inline int StringSlice::items_size() const { 173 return items_.size(); 174 } 175 inline void StringSlice::clear_items() { 176 items_.Clear(); 177 } 178 inline const ::std::string& StringSlice::items(int index) const { 179 // @@protoc_insertion_point(field_get:coprocess.StringSlice.items) 180 return items_.Get(index); 181 } 182 inline ::std::string* StringSlice::mutable_items(int index) { 183 // @@protoc_insertion_point(field_mutable:coprocess.StringSlice.items) 184 return items_.Mutable(index); 185 } 186 inline void StringSlice::set_items(int index, const ::std::string& value) { 187 // @@protoc_insertion_point(field_set:coprocess.StringSlice.items) 188 items_.Mutable(index)->assign(value); 189 } 190 inline void StringSlice::set_items(int index, const char* value) { 191 items_.Mutable(index)->assign(value); 192 // @@protoc_insertion_point(field_set_char:coprocess.StringSlice.items) 193 } 194 inline void StringSlice::set_items(int index, const char* value, size_t size) { 195 items_.Mutable(index)->assign( 196 reinterpret_cast<const char*>(value), size); 197 // @@protoc_insertion_point(field_set_pointer:coprocess.StringSlice.items) 198 } 199 inline ::std::string* StringSlice::add_items() { 200 // @@protoc_insertion_point(field_add_mutable:coprocess.StringSlice.items) 201 return items_.Add(); 202 } 203 inline void StringSlice::add_items(const ::std::string& value) { 204 items_.Add()->assign(value); 205 // @@protoc_insertion_point(field_add:coprocess.StringSlice.items) 206 } 207 inline void StringSlice::add_items(const char* value) { 208 items_.Add()->assign(value); 209 // @@protoc_insertion_point(field_add_char:coprocess.StringSlice.items) 210 } 211 inline void StringSlice::add_items(const char* value, size_t size) { 212 items_.Add()->assign(reinterpret_cast<const char*>(value), size); 213 // @@protoc_insertion_point(field_add_pointer:coprocess.StringSlice.items) 214 } 215 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& 216 StringSlice::items() const { 217 // @@protoc_insertion_point(field_list:coprocess.StringSlice.items) 218 return items_; 219 } 220 inline ::google::protobuf::RepeatedPtrField< ::std::string>* 221 StringSlice::mutable_items() { 222 // @@protoc_insertion_point(field_mutable_list:coprocess.StringSlice.items) 223 return &items_; 224 } 225 226 inline const StringSlice* StringSlice::internal_default_instance() { 227 return &StringSlice_default_instance_.get(); 228 } 229 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 230 231 // @@protoc_insertion_point(namespace_scope) 232 233 } // namespace coprocess 234 235 #ifndef SWIG 236 namespace google { 237 namespace protobuf { 238 239 template <> struct is_proto_enum< ::coprocess::HookType> : ::google::protobuf::internal::true_type {}; 240 template <> 241 inline const EnumDescriptor* GetEnumDescriptor< ::coprocess::HookType>() { 242 return ::coprocess::HookType_descriptor(); 243 } 244 245 } // namespace protobuf 246 } // namespace google 247 #endif // SWIG 248 249 // @@protoc_insertion_point(global_scope) 250 251 #endif // PROTOBUF_coprocess_5fcommon_2eproto__INCLUDED