Exception.pb.h 6.2 KB
Newer Older
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: Exception.proto
3

4
5
#ifndef PROTOBUF_Exception_2eproto__INCLUDED
#define PROTOBUF_Exception_2eproto__INCLUDED
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2003000
#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
#if 2003000 < GOOGLE_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

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_message_reflection.h>
// @@protoc_insertion_point(includes)

namespace castor {
namespace messages {

// Internal implementation detail -- do not call these.
32
33
34
void  protobuf_AddDesc_Exception_2eproto();
void protobuf_AssignDesc_Exception_2eproto();
void protobuf_ShutdownFile_Exception_2eproto();
35

36
class Exception;
37
38
39

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

40
class Exception : public ::google::protobuf::Message {
41
 public:
42
43
  Exception();
  virtual ~Exception();
44
  
45
  Exception(const Exception& from);
46
  
47
  inline Exception& operator=(const Exception& from) {
48
49
50
51
52
53
54
55
56
57
58
59
60
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
61
  static const Exception& default_instance();
62
  
63
  void Swap(Exception* other);
64
65
66
  
  // implements Message ----------------------------------------------
  
67
  Exception* New() const;
68
69
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
70
71
  void CopyFrom(const Exception& from);
  void MergeFrom(const Exception& from);
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
94
95
96
97
98
99
  // required uint32 code = 1;
  inline bool has_code() const;
  inline void clear_code();
  static const int kCodeFieldNumber = 1;
  inline ::google::protobuf::uint32 code() const;
  inline void set_code(::google::protobuf::uint32 value);
100
101
102
103
104
105
106
107
108
109
110
  
  // required string message = 2;
  inline bool has_message() const;
  inline void clear_message();
  static const int kMessageFieldNumber = 2;
  inline const ::std::string& message() const;
  inline void set_message(const ::std::string& value);
  inline void set_message(const char* value);
  inline void set_message(const char* value, size_t size);
  inline ::std::string* mutable_message();
  
111
  // @@protoc_insertion_point(class_scope:castor.messages.Exception)
112
113
114
115
 private:
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  mutable int _cached_size_;
  
116
  ::google::protobuf::uint32 code_;
117
118
  ::std::string* message_;
  static const ::std::string _default_message_;
119
120
121
  friend void  protobuf_AddDesc_Exception_2eproto();
  friend void protobuf_AssignDesc_Exception_2eproto();
  friend void protobuf_ShutdownFile_Exception_2eproto();
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
  
  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  
  // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  inline bool _has_bit(int index) const {
    return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  }
  inline void _set_bit(int index) {
    _has_bits_[index / 32] |= (1u << (index % 32));
  }
  inline void _clear_bit(int index) {
    _has_bits_[index / 32] &= ~(1u << (index % 32));
  }
  
  void InitAsDefaultInstance();
137
  static Exception* default_instance_;
138
139
140
141
142
143
};
// ===================================================================


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

144
// Exception
145

146
147
// required uint32 code = 1;
inline bool Exception::has_code() const {
148
149
  return _has_bit(0);
}
150
151
inline void Exception::clear_code() {
  code_ = 0u;
152
153
  _clear_bit(0);
}
154
155
inline ::google::protobuf::uint32 Exception::code() const {
  return code_;
156
}
157
inline void Exception::set_code(::google::protobuf::uint32 value) {
158
  _set_bit(0);
159
  code_ = value;
160
161
162
}

// required string message = 2;
163
inline bool Exception::has_message() const {
164
165
  return _has_bit(1);
}
166
inline void Exception::clear_message() {
167
168
169
170
171
  if (message_ != &_default_message_) {
    message_->clear();
  }
  _clear_bit(1);
}
172
inline const ::std::string& Exception::message() const {
173
174
  return *message_;
}
175
inline void Exception::set_message(const ::std::string& value) {
176
177
178
179
180
181
  _set_bit(1);
  if (message_ == &_default_message_) {
    message_ = new ::std::string;
  }
  message_->assign(value);
}
182
inline void Exception::set_message(const char* value) {
183
184
185
186
187
188
  _set_bit(1);
  if (message_ == &_default_message_) {
    message_ = new ::std::string;
  }
  message_->assign(value);
}
189
inline void Exception::set_message(const char* value, size_t size) {
190
191
192
193
194
195
  _set_bit(1);
  if (message_ == &_default_message_) {
    message_ = new ::std::string;
  }
  message_->assign(reinterpret_cast<const char*>(value), size);
}
196
inline ::std::string* Exception::mutable_message() {
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
  _set_bit(1);
  if (message_ == &_default_message_) {
    message_ = new ::std::string;
  }
  return message_;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace messages
}  // namespace castor

#ifndef SWIG
namespace google {
namespace protobuf {


}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

221
#endif  // PROTOBUF_Exception_2eproto__INCLUDED