Coverage Report

Created: 2025-11-24 06:34

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
};
131
bool ProtocolType_IsValid(int value);
132
const ProtocolType ProtocolType_MIN = PROTOCOL_UNKNOWN;
133
const ProtocolType ProtocolType_MAX = PROTOCOL_H2;
134
const int ProtocolType_ARRAYSIZE = ProtocolType_MAX + 1;
135
136
const ::google::protobuf::EnumDescriptor* ProtocolType_descriptor();
137
0
inline const ::std::string& ProtocolType_Name(ProtocolType value) {
138
0
  return ::google::protobuf::internal::NameOfEnum(
139
0
    ProtocolType_descriptor(), value);
140
0
}
141
inline bool ProtocolType_Parse(
142
0
    const ::std::string& name, ProtocolType* value) {
143
0
  return ::google::protobuf::internal::ParseNamedEnum<ProtocolType>(
144
0
    ProtocolType_descriptor(), name, value);
145
0
}
146
enum CompressType {
147
  COMPRESS_TYPE_NONE = 0,
148
  COMPRESS_TYPE_SNAPPY = 1,
149
  COMPRESS_TYPE_GZIP = 2,
150
  COMPRESS_TYPE_ZLIB = 3,
151
  COMPRESS_TYPE_LZ4 = 4
152
};
153
bool CompressType_IsValid(int value);
154
const CompressType CompressType_MIN = COMPRESS_TYPE_NONE;
155
const CompressType CompressType_MAX = COMPRESS_TYPE_LZ4;
156
const int CompressType_ARRAYSIZE = CompressType_MAX + 1;
157
158
const ::google::protobuf::EnumDescriptor* CompressType_descriptor();
159
0
inline const ::std::string& CompressType_Name(CompressType value) {
160
0
  return ::google::protobuf::internal::NameOfEnum(
161
0
    CompressType_descriptor(), value);
162
0
}
163
inline bool CompressType_Parse(
164
0
    const ::std::string& name, CompressType* value) {
165
0
  return ::google::protobuf::internal::ParseNamedEnum<CompressType>(
166
0
    CompressType_descriptor(), name, value);
167
0
}
168
enum ChecksumType {
169
  CHECKSUM_TYPE_NONE = 0,
170
  CHECKSUM_TYPE_CRC32C = 1
171
};
172
bool ChecksumType_IsValid(int value);
173
const ChecksumType ChecksumType_MIN = CHECKSUM_TYPE_NONE;
174
const ChecksumType ChecksumType_MAX = CHECKSUM_TYPE_CRC32C;
175
const int ChecksumType_ARRAYSIZE = ChecksumType_MAX + 1;
176
177
const ::google::protobuf::EnumDescriptor* ChecksumType_descriptor();
178
0
inline const ::std::string& ChecksumType_Name(ChecksumType value) {
179
0
  return ::google::protobuf::internal::NameOfEnum(
180
0
    ChecksumType_descriptor(), value);
181
0
}
182
inline bool ChecksumType_Parse(
183
0
    const ::std::string& name, ChecksumType* value) {
184
0
  return ::google::protobuf::internal::ParseNamedEnum<ChecksumType>(
185
0
    ChecksumType_descriptor(), name, value);
186
0
}
187
enum ContentType {
188
  CONTENT_TYPE_PB = 0,
189
  CONTENT_TYPE_JSON = 1,
190
  CONTENT_TYPE_PROTO_JSON = 2,
191
  CONTENT_TYPE_PROTO_TEXT = 3
192
};
193
bool ContentType_IsValid(int value);
194
const ContentType ContentType_MIN = CONTENT_TYPE_PB;
195
const ContentType ContentType_MAX = CONTENT_TYPE_PROTO_TEXT;
196
const int ContentType_ARRAYSIZE = ContentType_MAX + 1;
197
198
const ::google::protobuf::EnumDescriptor* ContentType_descriptor();
199
0
inline const ::std::string& ContentType_Name(ContentType value) {
200
0
  return ::google::protobuf::internal::NameOfEnum(
201
0
    ContentType_descriptor(), value);
202
0
}
203
inline bool ContentType_Parse(
204
0
    const ::std::string& name, ContentType* value) {
205
0
  return ::google::protobuf::internal::ParseNamedEnum<ContentType>(
206
0
    ContentType_descriptor(), name, value);
207
0
}
208
// ===================================================================
209
210
class ChunkInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.ChunkInfo) */ {
211
 public:
212
  ChunkInfo();
213
  virtual ~ChunkInfo();
214
215
  ChunkInfo(const ChunkInfo& from);
216
217
0
  inline ChunkInfo& operator=(const ChunkInfo& from) {
218
0
    CopyFrom(from);
219
0
    return *this;
220
0
  }
221
  #if LANG_CXX11
222
  ChunkInfo(ChunkInfo&& from) noexcept
223
0
    : ChunkInfo() {
224
0
    *this = ::std::move(from);
225
0
  }
226
227
0
  inline ChunkInfo& operator=(ChunkInfo&& from) noexcept {
228
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
229
0
      if (this != &from) InternalSwap(&from);
230
0
    } else {
231
0
      CopyFrom(from);
232
0
    }
233
0
    return *this;
234
0
  }
235
  #endif
236
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
237
0
    return _internal_metadata_.unknown_fields();
238
0
  }
239
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
240
0
    return _internal_metadata_.mutable_unknown_fields();
241
0
  }
242
243
  static const ::google::protobuf::Descriptor* descriptor();
244
  static const ChunkInfo& default_instance();
245
246
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
247
36
  static inline const ChunkInfo* internal_default_instance() {
248
36
    return reinterpret_cast<const ChunkInfo*>(
249
36
               &_ChunkInfo_default_instance_);
250
36
  }
251
  static constexpr int kIndexInFileMessages =
252
    0;
253
254
  void Swap(ChunkInfo* other);
255
0
  friend void swap(ChunkInfo& a, ChunkInfo& b) {
256
0
    a.Swap(&b);
257
0
  }
258
259
  // implements Message ----------------------------------------------
260
261
0
  inline ChunkInfo* New() const final {
262
0
    return CreateMaybeMessage<ChunkInfo>(NULL);
263
0
  }
264
265
0
  ChunkInfo* New(::google::protobuf::Arena* arena) const final {
266
0
    return CreateMaybeMessage<ChunkInfo>(arena);
267
0
  }
268
  void CopyFrom(const ::google::protobuf::Message& from) final;
269
  void MergeFrom(const ::google::protobuf::Message& from) final;
270
  void CopyFrom(const ChunkInfo& from);
271
  void MergeFrom(const ChunkInfo& from);
272
  void Clear() final;
273
  bool IsInitialized() const final;
274
275
  size_t ByteSizeLong() const final;
276
  bool MergePartialFromCodedStream(
277
      ::google::protobuf::io::CodedInputStream* input) final;
278
  void SerializeWithCachedSizes(
279
      ::google::protobuf::io::CodedOutputStream* output) const final;
280
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
281
      bool deterministic, ::google::protobuf::uint8* target) const final;
282
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
283
284
  private:
285
  void SharedCtor();
286
  void SharedDtor();
287
  void SetCachedSize(int size) const final;
288
  void InternalSwap(ChunkInfo* other);
289
  private:
290
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
291
0
    return NULL;
292
0
  }
293
0
  inline void* MaybeArenaPtr() const {
294
0
    return NULL;
295
0
  }
296
  public:
297
298
  ::google::protobuf::Metadata GetMetadata() const final;
299
300
  // nested types ----------------------------------------------------
301
302
  // accessors -------------------------------------------------------
303
304
  // required int64 stream_id = 1;
305
  bool has_stream_id() const;
306
  void clear_stream_id();
307
  static const int kStreamIdFieldNumber = 1;
308
  ::google::protobuf::int64 stream_id() const;
309
  void set_stream_id(::google::protobuf::int64 value);
310
311
  // required int64 chunk_id = 2;
312
  bool has_chunk_id() const;
313
  void clear_chunk_id();
314
  static const int kChunkIdFieldNumber = 2;
315
  ::google::protobuf::int64 chunk_id() const;
316
  void set_chunk_id(::google::protobuf::int64 value);
317
318
  // @@protoc_insertion_point(class_scope:brpc.ChunkInfo)
319
 private:
320
  void set_has_stream_id();
321
  void clear_has_stream_id();
322
  void set_has_chunk_id();
323
  void clear_has_chunk_id();
324
325
  // helper for ByteSizeLong()
326
  size_t RequiredFieldsByteSizeFallback() const;
327
328
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
329
  ::google::protobuf::internal::HasBits<1> _has_bits_;
330
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
331
  ::google::protobuf::int64 stream_id_;
332
  ::google::protobuf::int64 chunk_id_;
333
  friend struct ::protobuf_brpc_2foptions_2eproto::TableStruct;
334
};
335
// ===================================================================
336
337
static const int kServiceTimeoutFieldNumber = 90000;
338
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
339
    ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
340
  service_timeout;
341
static const int kRequestTalkTypeFieldNumber = 90001;
342
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
343
    ::google::protobuf::internal::EnumTypeTraits< ::brpc::TalkType, ::brpc::TalkType_IsValid>, 14, false >
344
  request_talk_type;
345
static const int kResponseTalkTypeFieldNumber = 90002;
346
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
347
    ::google::protobuf::internal::EnumTypeTraits< ::brpc::TalkType, ::brpc::TalkType_IsValid>, 14, false >
348
  response_talk_type;
349
static const int kMethodTimeoutFieldNumber = 90003;
350
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
351
    ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
352
  method_timeout;
353
static const int kRequestCompressionFieldNumber = 90004;
354
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
355
    ::google::protobuf::internal::EnumTypeTraits< ::brpc::CompressType, ::brpc::CompressType_IsValid>, 14, false >
356
  request_compression;
357
static const int kResponseCompressionFieldNumber = 90005;
358
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
359
    ::google::protobuf::internal::EnumTypeTraits< ::brpc::CompressType, ::brpc::CompressType_IsValid>, 14, false >
360
  response_compression;
361
362
// ===================================================================
363
364
#ifdef __GNUC__
365
  #pragma GCC diagnostic push
366
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
367
#endif  // __GNUC__
368
// ChunkInfo
369
370
// required int64 stream_id = 1;
371
0
inline bool ChunkInfo::has_stream_id() const {
372
0
  return (_has_bits_[0] & 0x00000001u) != 0;
373
0
}
374
0
inline void ChunkInfo::set_has_stream_id() {
375
0
  _has_bits_[0] |= 0x00000001u;
376
0
}
377
0
inline void ChunkInfo::clear_has_stream_id() {
378
0
  _has_bits_[0] &= ~0x00000001u;
379
0
}
380
0
inline void ChunkInfo::clear_stream_id() {
381
0
  stream_id_ = GOOGLE_LONGLONG(0);
382
0
  clear_has_stream_id();
383
0
}
384
0
inline ::google::protobuf::int64 ChunkInfo::stream_id() const {
385
  // @@protoc_insertion_point(field_get:brpc.ChunkInfo.stream_id)
386
0
  return stream_id_;
387
0
}
388
0
inline void ChunkInfo::set_stream_id(::google::protobuf::int64 value) {
389
0
  set_has_stream_id();
390
0
  stream_id_ = value;
391
0
  // @@protoc_insertion_point(field_set:brpc.ChunkInfo.stream_id)
392
0
}
393
394
// required int64 chunk_id = 2;
395
0
inline bool ChunkInfo::has_chunk_id() const {
396
0
  return (_has_bits_[0] & 0x00000002u) != 0;
397
0
}
398
0
inline void ChunkInfo::set_has_chunk_id() {
399
0
  _has_bits_[0] |= 0x00000002u;
400
0
}
401
0
inline void ChunkInfo::clear_has_chunk_id() {
402
0
  _has_bits_[0] &= ~0x00000002u;
403
0
}
404
0
inline void ChunkInfo::clear_chunk_id() {
405
0
  chunk_id_ = GOOGLE_LONGLONG(0);
406
0
  clear_has_chunk_id();
407
0
}
408
0
inline ::google::protobuf::int64 ChunkInfo::chunk_id() const {
409
  // @@protoc_insertion_point(field_get:brpc.ChunkInfo.chunk_id)
410
0
  return chunk_id_;
411
0
}
412
0
inline void ChunkInfo::set_chunk_id(::google::protobuf::int64 value) {
413
0
  set_has_chunk_id();
414
0
  chunk_id_ = value;
415
0
  // @@protoc_insertion_point(field_set:brpc.ChunkInfo.chunk_id)
416
0
}
417
418
#ifdef __GNUC__
419
  #pragma GCC diagnostic pop
420
#endif  // __GNUC__
421
422
// @@protoc_insertion_point(namespace_scope)
423
424
}  // namespace brpc
425
426
namespace google {
427
namespace protobuf {
428
429
template <> struct is_proto_enum< ::brpc::TalkType> : ::std::true_type {};
430
template <>
431
0
inline const EnumDescriptor* GetEnumDescriptor< ::brpc::TalkType>() {
432
0
  return ::brpc::TalkType_descriptor();
433
0
}
434
template <> struct is_proto_enum< ::brpc::ConnectionType> : ::std::true_type {};
435
template <>
436
0
inline const EnumDescriptor* GetEnumDescriptor< ::brpc::ConnectionType>() {
437
0
  return ::brpc::ConnectionType_descriptor();
438
0
}
439
template <> struct is_proto_enum< ::brpc::ProtocolType> : ::std::true_type {};
440
template <>
441
0
inline const EnumDescriptor* GetEnumDescriptor< ::brpc::ProtocolType>() {
442
0
  return ::brpc::ProtocolType_descriptor();
443
0
}
444
template <> struct is_proto_enum< ::brpc::CompressType> : ::std::true_type {};
445
template <>
446
0
inline const EnumDescriptor* GetEnumDescriptor< ::brpc::CompressType>() {
447
0
  return ::brpc::CompressType_descriptor();
448
0
}
449
template <> struct is_proto_enum< ::brpc::ChecksumType> : ::std::true_type {};
450
template <>
451
0
inline const EnumDescriptor* GetEnumDescriptor< ::brpc::ChecksumType>() {
452
0
  return ::brpc::ChecksumType_descriptor();
453
0
}
454
template <> struct is_proto_enum< ::brpc::ContentType> : ::std::true_type {};
455
template <>
456
0
inline const EnumDescriptor* GetEnumDescriptor< ::brpc::ContentType>() {
457
0
  return ::brpc::ContentType_descriptor();
458
0
}
459
460
}  // namespace protobuf
461
}  // namespace google
462
463
// @@protoc_insertion_point(global_scope)
464
465
#endif  // PROTOBUF_INCLUDED_brpc_2foptions_2eproto