Coverage Report

Created: 2025-12-02 06:36

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