1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: brpc/options.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_brpc_2foptions_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_brpc_2foptions_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3011000
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 3011004 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/inlined_string_field.h>
29#include <google/protobuf/metadata.h>
30#include <google/protobuf/generated_message_reflection.h>
31#include <google/protobuf/message.h>
32#include <google/protobuf/repeated_field.h> // IWYU pragma: export
33#include <google/protobuf/extension_set.h> // IWYU pragma: export
34#include <google/protobuf/generated_enum_reflection.h>
35#include <google/protobuf/unknown_field_set.h>
36#include <google/protobuf/descriptor.pb.h>
37// @@protoc_insertion_point(includes)
38#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_brpc_2foptions_2eproto
40PROTOBUF_NAMESPACE_OPEN
41namespace internal {
42class AnyMetadata;
43} // namespace internal
44PROTOBUF_NAMESPACE_CLOSE
45
46// Internal implementation detail -- do not use these members.
47struct TableStruct_brpc_2foptions_2eproto {
48 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
49 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
51 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
53 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
55 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
56 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
57};
58extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_brpc_2foptions_2eproto;
59namespace brpc {
60class ChunkInfo;
61class ChunkInfoDefaultTypeInternal;
62extern ChunkInfoDefaultTypeInternal _ChunkInfo_default_instance_;
63} // namespace brpc
64PROTOBUF_NAMESPACE_OPEN
65template<> ::brpc::ChunkInfo* Arena::CreateMaybeMessage<::brpc::ChunkInfo>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace brpc {
68
69enum TalkType : int {
70 TALK_TYPE_NORMAL = 0,
71 TALK_TYPE_ONEWAY = 1
72};
73bool TalkType_IsValid(int value);
74constexpr TalkType TalkType_MIN = TALK_TYPE_NORMAL;
75constexpr TalkType TalkType_MAX = TALK_TYPE_ONEWAY;
76constexpr int TalkType_ARRAYSIZE = TalkType_MAX + 1;
77
78const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TalkType_descriptor();
79template<typename T>
80inline const std::string& TalkType_Name(T enum_t_value) {
81 static_assert(::std::is_same<T, TalkType>::value ||
82 ::std::is_integral<T>::value,
83 "Incorrect type passed to function TalkType_Name.");
84 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
85 TalkType_descriptor(), enum_t_value);
86}
87inline bool TalkType_Parse(
88 const std::string& name, TalkType* value) {
89 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TalkType>(
90 TalkType_descriptor(), name, value);
91}
92enum ConnectionType : int {
93 CONNECTION_TYPE_UNKNOWN = 0,
94 CONNECTION_TYPE_SINGLE = 1,
95 CONNECTION_TYPE_POOLED = 2,
96 CONNECTION_TYPE_SHORT = 4
97};
98bool ConnectionType_IsValid(int value);
99constexpr ConnectionType ConnectionType_MIN = CONNECTION_TYPE_UNKNOWN;
100constexpr ConnectionType ConnectionType_MAX = CONNECTION_TYPE_SHORT;
101constexpr int ConnectionType_ARRAYSIZE = ConnectionType_MAX + 1;
102
103const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConnectionType_descriptor();
104template<typename T>
105inline const std::string& ConnectionType_Name(T enum_t_value) {
106 static_assert(::std::is_same<T, ConnectionType>::value ||
107 ::std::is_integral<T>::value,
108 "Incorrect type passed to function ConnectionType_Name.");
109 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
110 ConnectionType_descriptor(), enum_t_value);
111}
112inline bool ConnectionType_Parse(
113 const std::string& name, ConnectionType* value) {
114 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ConnectionType>(
115 ConnectionType_descriptor(), name, value);
116}
117enum ProtocolType : int {
118 PROTOCOL_UNKNOWN = 0,
119 PROTOCOL_BAIDU_STD = 1,
120 PROTOCOL_STREAMING_RPC = 2,
121 PROTOCOL_HULU_PBRPC = 3,
122 PROTOCOL_SOFA_PBRPC = 4,
123 PROTOCOL_RTMP = 5,
124 PROTOCOL_THRIFT = 6,
125 PROTOCOL_HTTP = 7,
126 PROTOCOL_PUBLIC_PBRPC = 8,
127 PROTOCOL_NOVA_PBRPC = 9,
128 PROTOCOL_REDIS = 10,
129 PROTOCOL_NSHEAD_CLIENT = 11,
130 PROTOCOL_NSHEAD = 12,
131 PROTOCOL_HADOOP_RPC = 13,
132 PROTOCOL_HADOOP_SERVER_RPC = 14,
133 PROTOCOL_MONGO = 15,
134 PROTOCOL_UBRPC_COMPACK = 16,
135 PROTOCOL_DIDX_CLIENT = 17,
136 PROTOCOL_MEMCACHE = 18,
137 PROTOCOL_ITP = 19,
138 PROTOCOL_NSHEAD_MCPACK = 20,
139 PROTOCOL_DISP_IDL = 21,
140 PROTOCOL_ERSDA_CLIENT = 22,
141 PROTOCOL_UBRPC_MCPACK2 = 23,
142 PROTOCOL_CDS_AGENT = 24,
143 PROTOCOL_ESP = 25,
144 PROTOCOL_H2 = 26
145};
146bool ProtocolType_IsValid(int value);
147constexpr ProtocolType ProtocolType_MIN = PROTOCOL_UNKNOWN;
148constexpr ProtocolType ProtocolType_MAX = PROTOCOL_H2;
149constexpr int ProtocolType_ARRAYSIZE = ProtocolType_MAX + 1;
150
151const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProtocolType_descriptor();
152template<typename T>
153inline const std::string& ProtocolType_Name(T enum_t_value) {
154 static_assert(::std::is_same<T, ProtocolType>::value ||
155 ::std::is_integral<T>::value,
156 "Incorrect type passed to function ProtocolType_Name.");
157 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
158 ProtocolType_descriptor(), enum_t_value);
159}
160inline bool ProtocolType_Parse(
161 const std::string& name, ProtocolType* value) {
162 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ProtocolType>(
163 ProtocolType_descriptor(), name, value);
164}
165enum CompressType : int {
166 COMPRESS_TYPE_NONE = 0,
167 COMPRESS_TYPE_SNAPPY = 1,
168 COMPRESS_TYPE_GZIP = 2,
169 COMPRESS_TYPE_ZLIB = 3,
170 COMPRESS_TYPE_LZ4 = 4
171};
172bool CompressType_IsValid(int value);
173constexpr CompressType CompressType_MIN = COMPRESS_TYPE_NONE;
174constexpr CompressType CompressType_MAX = COMPRESS_TYPE_LZ4;
175constexpr int CompressType_ARRAYSIZE = CompressType_MAX + 1;
176
177const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompressType_descriptor();
178template<typename T>
179inline const std::string& CompressType_Name(T enum_t_value) {
180 static_assert(::std::is_same<T, CompressType>::value ||
181 ::std::is_integral<T>::value,
182 "Incorrect type passed to function CompressType_Name.");
183 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
184 CompressType_descriptor(), enum_t_value);
185}
186inline bool CompressType_Parse(
187 const std::string& name, CompressType* value) {
188 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CompressType>(
189 CompressType_descriptor(), name, value);
190}
191// ===================================================================
192
193class ChunkInfo :
194 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:brpc.ChunkInfo) */ {
195 public:
196 ChunkInfo();
197 virtual ~ChunkInfo();
198
199 ChunkInfo(const ChunkInfo& from);
200 ChunkInfo(ChunkInfo&& from) noexcept
201 : ChunkInfo() {
202 *this = ::std::move(from);
203 }
204
205 inline ChunkInfo& operator=(const ChunkInfo& from) {
206 CopyFrom(from);
207 return *this;
208 }
209 inline ChunkInfo& operator=(ChunkInfo&& from) noexcept {
210 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
211 if (this != &from) InternalSwap(&from);
212 } else {
213 CopyFrom(from);
214 }
215 return *this;
216 }
217
218 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
219 return _internal_metadata_.unknown_fields();
220 }
221 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
222 return _internal_metadata_.mutable_unknown_fields();
223 }
224
225 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
226 return GetDescriptor();
227 }
228 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
229 return GetMetadataStatic().descriptor;
230 }
231 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
232 return GetMetadataStatic().reflection;
233 }
234 static const ChunkInfo& default_instance();
235
236 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
237 static inline const ChunkInfo* internal_default_instance() {
238 return reinterpret_cast<const ChunkInfo*>(
239 &_ChunkInfo_default_instance_);
240 }
241 static constexpr int kIndexInFileMessages =
242 0;
243
244 friend void swap(ChunkInfo& a, ChunkInfo& b) {
245 a.Swap(&b);
246 }
247 inline void Swap(ChunkInfo* other) {
248 if (other == this) return;
249 InternalSwap(other);
250 }
251
252 // implements Message ----------------------------------------------
253
254 inline ChunkInfo* New() const final {
255 return CreateMaybeMessage<ChunkInfo>(nullptr);
256 }
257
258 ChunkInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
259 return CreateMaybeMessage<ChunkInfo>(arena);
260 }
261 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
262 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
263 void CopyFrom(const ChunkInfo& from);
264 void MergeFrom(const ChunkInfo& from);
265 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
266 bool IsInitialized() const final;
267
268 size_t ByteSizeLong() const final;
269 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
270 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
271 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
272 int GetCachedSize() const final { return _cached_size_.Get(); }
273
274 private:
275 inline void SharedCtor();
276 inline void SharedDtor();
277 void SetCachedSize(int size) const final;
278 void InternalSwap(ChunkInfo* other);
279 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
280 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
281 return "brpc.ChunkInfo";
282 }
283 private:
284 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
285 return nullptr;
286 }
287 inline void* MaybeArenaPtr() const {
288 return nullptr;
289 }
290 public:
291
292 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
293 private:
294 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
295 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_brpc_2foptions_2eproto);
296 return ::descriptor_table_brpc_2foptions_2eproto.file_level_metadata[kIndexInFileMessages];
297 }
298
299 public:
300
301 // nested types ----------------------------------------------------
302
303 // accessors -------------------------------------------------------
304
305 enum : int {
306 kStreamIdFieldNumber = 1,
307 kChunkIdFieldNumber = 2,
308 };
309 // required int64 stream_id = 1;
310 bool has_stream_id() const;
311 private:
312 bool _internal_has_stream_id() const;
313 public:
314 void clear_stream_id();
315 ::PROTOBUF_NAMESPACE_ID::int64 stream_id() const;
316 void set_stream_id(::PROTOBUF_NAMESPACE_ID::int64 value);
317 private:
318 ::PROTOBUF_NAMESPACE_ID::int64 _internal_stream_id() const;
319 void _internal_set_stream_id(::PROTOBUF_NAMESPACE_ID::int64 value);
320 public:
321
322 // required int64 chunk_id = 2;
323 bool has_chunk_id() const;
324 private:
325 bool _internal_has_chunk_id() const;
326 public:
327 void clear_chunk_id();
328 ::PROTOBUF_NAMESPACE_ID::int64 chunk_id() const;
329 void set_chunk_id(::PROTOBUF_NAMESPACE_ID::int64 value);
330 private:
331 ::PROTOBUF_NAMESPACE_ID::int64 _internal_chunk_id() const;
332 void _internal_set_chunk_id(::PROTOBUF_NAMESPACE_ID::int64 value);
333 public:
334
335 // @@protoc_insertion_point(class_scope:brpc.ChunkInfo)
336 private:
337 class _Internal;
338
339 // helper for ByteSizeLong()
340 size_t RequiredFieldsByteSizeFallback() const;
341
342 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
343 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
344 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
345 ::PROTOBUF_NAMESPACE_ID::int64 stream_id_;
346 ::PROTOBUF_NAMESPACE_ID::int64 chunk_id_;
347 friend struct ::TableStruct_brpc_2foptions_2eproto;
348};
349// ===================================================================
350
351static const int kServiceTimeoutFieldNumber = 90000;
352extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
353 ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< ::PROTOBUF_NAMESPACE_ID::int64 >, 3, false >
354 service_timeout;
355static const int kRequestTalkTypeFieldNumber = 90001;
356extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
357 ::PROTOBUF_NAMESPACE_ID::internal::EnumTypeTraits< ::brpc::TalkType, ::brpc::TalkType_IsValid>, 14, false >
358 request_talk_type;
359static const int kResponseTalkTypeFieldNumber = 90002;
360extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
361 ::PROTOBUF_NAMESPACE_ID::internal::EnumTypeTraits< ::brpc::TalkType, ::brpc::TalkType_IsValid>, 14, false >
362 response_talk_type;
363static const int kMethodTimeoutFieldNumber = 90003;
364extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
365 ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< ::PROTOBUF_NAMESPACE_ID::int64 >, 3, false >
366 method_timeout;
367static const int kRequestCompressionFieldNumber = 90004;
368extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
369 ::PROTOBUF_NAMESPACE_ID::internal::EnumTypeTraits< ::brpc::CompressType, ::brpc::CompressType_IsValid>, 14, false >
370 request_compression;
371static const int kResponseCompressionFieldNumber = 90005;
372extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
373 ::PROTOBUF_NAMESPACE_ID::internal::EnumTypeTraits< ::brpc::CompressType, ::brpc::CompressType_IsValid>, 14, false >
374 response_compression;
375
376// ===================================================================
377
378#ifdef __GNUC__
379 #pragma GCC diagnostic push
380 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
381#endif // __GNUC__
382// ChunkInfo
383
384// required int64 stream_id = 1;
385inline bool ChunkInfo::_internal_has_stream_id() const {
386 bool value = (_has_bits_[0] & 0x00000001u) != 0;
387 return value;
388}
389inline bool ChunkInfo::has_stream_id() const {
390 return _internal_has_stream_id();
391}
392inline void ChunkInfo::clear_stream_id() {
393 stream_id_ = PROTOBUF_LONGLONG(0);
394 _has_bits_[0] &= ~0x00000001u;
395}
396inline ::PROTOBUF_NAMESPACE_ID::int64 ChunkInfo::_internal_stream_id() const {
397 return stream_id_;
398}
399inline ::PROTOBUF_NAMESPACE_ID::int64 ChunkInfo::stream_id() const {
400 // @@protoc_insertion_point(field_get:brpc.ChunkInfo.stream_id)
401 return _internal_stream_id();
402}
403inline void ChunkInfo::_internal_set_stream_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
404 _has_bits_[0] |= 0x00000001u;
405 stream_id_ = value;
406}
407inline void ChunkInfo::set_stream_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
408 _internal_set_stream_id(value);
409 // @@protoc_insertion_point(field_set:brpc.ChunkInfo.stream_id)
410}
411
412// required int64 chunk_id = 2;
413inline bool ChunkInfo::_internal_has_chunk_id() const {
414 bool value = (_has_bits_[0] & 0x00000002u) != 0;
415 return value;
416}
417inline bool ChunkInfo::has_chunk_id() const {
418 return _internal_has_chunk_id();
419}
420inline void ChunkInfo::clear_chunk_id() {
421 chunk_id_ = PROTOBUF_LONGLONG(0);
422 _has_bits_[0] &= ~0x00000002u;
423}
424inline ::PROTOBUF_NAMESPACE_ID::int64 ChunkInfo::_internal_chunk_id() const {
425 return chunk_id_;
426}
427inline ::PROTOBUF_NAMESPACE_ID::int64 ChunkInfo::chunk_id() const {
428 // @@protoc_insertion_point(field_get:brpc.ChunkInfo.chunk_id)
429 return _internal_chunk_id();
430}
431inline void ChunkInfo::_internal_set_chunk_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
432 _has_bits_[0] |= 0x00000002u;
433 chunk_id_ = value;
434}
435inline void ChunkInfo::set_chunk_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
436 _internal_set_chunk_id(value);
437 // @@protoc_insertion_point(field_set:brpc.ChunkInfo.chunk_id)
438}
439
440#ifdef __GNUC__
441 #pragma GCC diagnostic pop
442#endif // __GNUC__
443
444// @@protoc_insertion_point(namespace_scope)
445
446} // namespace brpc
447
448PROTOBUF_NAMESPACE_OPEN
449
450template <> struct is_proto_enum< ::brpc::TalkType> : ::std::true_type {};
451template <>
452inline const EnumDescriptor* GetEnumDescriptor< ::brpc::TalkType>() {
453 return ::brpc::TalkType_descriptor();
454}
455template <> struct is_proto_enum< ::brpc::ConnectionType> : ::std::true_type {};
456template <>
457inline const EnumDescriptor* GetEnumDescriptor< ::brpc::ConnectionType>() {
458 return ::brpc::ConnectionType_descriptor();
459}
460template <> struct is_proto_enum< ::brpc::ProtocolType> : ::std::true_type {};
461template <>
462inline const EnumDescriptor* GetEnumDescriptor< ::brpc::ProtocolType>() {
463 return ::brpc::ProtocolType_descriptor();
464}
465template <> struct is_proto_enum< ::brpc::CompressType> : ::std::true_type {};
466template <>
467inline const EnumDescriptor* GetEnumDescriptor< ::brpc::CompressType>() {
468 return ::brpc::CompressType_descriptor();
469}
470
471PROTOBUF_NAMESPACE_CLOSE
472
473// @@protoc_insertion_point(global_scope)
474
475#include <google/protobuf/port_undef.inc>
476#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_brpc_2foptions_2eproto
477