ProtobufSealerMessages.pb.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ProtobufSealerMessages.proto
  3. #ifndef PROTOBUF_ProtobufSealerMessages_2eproto__INCLUDED
  4. #define PROTOBUF_ProtobufSealerMessages_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2006000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/message.h>
  19. #include <google/protobuf/repeated_field.h>
  20. #include <google/protobuf/extension_set.h>
  21. #include <google/protobuf/unknown_field_set.h>
  22. // @@protoc_insertion_point(includes)
  23. // Internal implementation detail -- do not call these.
  24. void protobuf_AddDesc_ProtobufSealerMessages_2eproto();
  25. void protobuf_AssignDesc_ProtobufSealerMessages_2eproto();
  26. void protobuf_ShutdownFile_ProtobufSealerMessages_2eproto();
  27. class protobuf_sgx_mc_uuid_t;
  28. class protobuf_plaintext_seal_message;
  29. // ===================================================================
  30. class protobuf_sgx_mc_uuid_t : public ::google::protobuf::Message {
  31. public:
  32. protobuf_sgx_mc_uuid_t();
  33. virtual ~protobuf_sgx_mc_uuid_t();
  34. protobuf_sgx_mc_uuid_t(const protobuf_sgx_mc_uuid_t& from);
  35. inline protobuf_sgx_mc_uuid_t& operator=(const protobuf_sgx_mc_uuid_t& from) {
  36. CopyFrom(from);
  37. return *this;
  38. }
  39. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  40. return _unknown_fields_;
  41. }
  42. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  43. return &_unknown_fields_;
  44. }
  45. static const ::google::protobuf::Descriptor* descriptor();
  46. static const protobuf_sgx_mc_uuid_t& default_instance();
  47. void Swap(protobuf_sgx_mc_uuid_t* other);
  48. // implements Message ----------------------------------------------
  49. protobuf_sgx_mc_uuid_t* New() const;
  50. void CopyFrom(const ::google::protobuf::Message& from);
  51. void MergeFrom(const ::google::protobuf::Message& from);
  52. void CopyFrom(const protobuf_sgx_mc_uuid_t& from);
  53. void MergeFrom(const protobuf_sgx_mc_uuid_t& from);
  54. void Clear();
  55. bool IsInitialized() const;
  56. int ByteSize() const;
  57. bool MergePartialFromCodedStream(
  58. ::google::protobuf::io::CodedInputStream* input);
  59. void SerializeWithCachedSizes(
  60. ::google::protobuf::io::CodedOutputStream* output) const;
  61. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  62. int GetCachedSize() const { return _cached_size_; }
  63. private:
  64. void SharedCtor();
  65. void SharedDtor();
  66. void SetCachedSize(int size) const;
  67. public:
  68. ::google::protobuf::Metadata GetMetadata() const;
  69. // nested types ----------------------------------------------------
  70. // accessors -------------------------------------------------------
  71. // required bytes nonce = 1;
  72. inline bool has_nonce() const;
  73. inline void clear_nonce();
  74. static const int kNonceFieldNumber = 1;
  75. inline const ::std::string& nonce() const;
  76. inline void set_nonce(const ::std::string& value);
  77. inline void set_nonce(const char* value);
  78. inline void set_nonce(const void* value, size_t size);
  79. inline ::std::string* mutable_nonce();
  80. inline ::std::string* release_nonce();
  81. inline void set_allocated_nonce(::std::string* nonce);
  82. // required bytes counter_id = 2;
  83. inline bool has_counter_id() const;
  84. inline void clear_counter_id();
  85. static const int kCounterIdFieldNumber = 2;
  86. inline const ::std::string& counter_id() const;
  87. inline void set_counter_id(const ::std::string& value);
  88. inline void set_counter_id(const char* value);
  89. inline void set_counter_id(const void* value, size_t size);
  90. inline ::std::string* mutable_counter_id();
  91. inline ::std::string* release_counter_id();
  92. inline void set_allocated_counter_id(::std::string* counter_id);
  93. // @@protoc_insertion_point(class_scope:protobuf_sgx_mc_uuid_t)
  94. private:
  95. inline void set_has_nonce();
  96. inline void clear_has_nonce();
  97. inline void set_has_counter_id();
  98. inline void clear_has_counter_id();
  99. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  100. ::google::protobuf::uint32 _has_bits_[1];
  101. mutable int _cached_size_;
  102. ::std::string* nonce_;
  103. ::std::string* counter_id_;
  104. friend void protobuf_AddDesc_ProtobufSealerMessages_2eproto();
  105. friend void protobuf_AssignDesc_ProtobufSealerMessages_2eproto();
  106. friend void protobuf_ShutdownFile_ProtobufSealerMessages_2eproto();
  107. void InitAsDefaultInstance();
  108. static protobuf_sgx_mc_uuid_t* default_instance_;
  109. };
  110. // -------------------------------------------------------------------
  111. class protobuf_plaintext_seal_message : public ::google::protobuf::Message {
  112. public:
  113. protobuf_plaintext_seal_message();
  114. virtual ~protobuf_plaintext_seal_message();
  115. protobuf_plaintext_seal_message(const protobuf_plaintext_seal_message& from);
  116. inline protobuf_plaintext_seal_message& operator=(const protobuf_plaintext_seal_message& from) {
  117. CopyFrom(from);
  118. return *this;
  119. }
  120. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  121. return _unknown_fields_;
  122. }
  123. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  124. return &_unknown_fields_;
  125. }
  126. static const ::google::protobuf::Descriptor* descriptor();
  127. static const protobuf_plaintext_seal_message& default_instance();
  128. void Swap(protobuf_plaintext_seal_message* other);
  129. // implements Message ----------------------------------------------
  130. protobuf_plaintext_seal_message* New() const;
  131. void CopyFrom(const ::google::protobuf::Message& from);
  132. void MergeFrom(const ::google::protobuf::Message& from);
  133. void CopyFrom(const protobuf_plaintext_seal_message& from);
  134. void MergeFrom(const protobuf_plaintext_seal_message& from);
  135. void Clear();
  136. bool IsInitialized() const;
  137. int ByteSize() const;
  138. bool MergePartialFromCodedStream(
  139. ::google::protobuf::io::CodedInputStream* input);
  140. void SerializeWithCachedSizes(
  141. ::google::protobuf::io::CodedOutputStream* output) const;
  142. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  143. int GetCachedSize() const { return _cached_size_; }
  144. private:
  145. void SharedCtor();
  146. void SharedDtor();
  147. void SetCachedSize(int size) const;
  148. public:
  149. ::google::protobuf::Metadata GetMetadata() const;
  150. // nested types ----------------------------------------------------
  151. // accessors -------------------------------------------------------
  152. // required .protobuf_sgx_mc_uuid_t monotonic_counter_id = 1;
  153. inline bool has_monotonic_counter_id() const;
  154. inline void clear_monotonic_counter_id();
  155. static const int kMonotonicCounterIdFieldNumber = 1;
  156. inline const ::protobuf_sgx_mc_uuid_t& monotonic_counter_id() const;
  157. inline ::protobuf_sgx_mc_uuid_t* mutable_monotonic_counter_id();
  158. inline ::protobuf_sgx_mc_uuid_t* release_monotonic_counter_id();
  159. inline void set_allocated_monotonic_counter_id(::protobuf_sgx_mc_uuid_t* monotonic_counter_id);
  160. // required uint32 monotonic_counter_value = 2;
  161. inline bool has_monotonic_counter_value() const;
  162. inline void clear_monotonic_counter_value();
  163. static const int kMonotonicCounterValueFieldNumber = 2;
  164. inline ::google::protobuf::uint32 monotonic_counter_value() const;
  165. inline void set_monotonic_counter_value(::google::protobuf::uint32 value);
  166. // required bytes message = 3;
  167. inline bool has_message() const;
  168. inline void clear_message();
  169. static const int kMessageFieldNumber = 3;
  170. inline const ::std::string& message() const;
  171. inline void set_message(const ::std::string& value);
  172. inline void set_message(const char* value);
  173. inline void set_message(const void* value, size_t size);
  174. inline ::std::string* mutable_message();
  175. inline ::std::string* release_message();
  176. inline void set_allocated_message(::std::string* message);
  177. // @@protoc_insertion_point(class_scope:protobuf_plaintext_seal_message)
  178. private:
  179. inline void set_has_monotonic_counter_id();
  180. inline void clear_has_monotonic_counter_id();
  181. inline void set_has_monotonic_counter_value();
  182. inline void clear_has_monotonic_counter_value();
  183. inline void set_has_message();
  184. inline void clear_has_message();
  185. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  186. ::google::protobuf::uint32 _has_bits_[1];
  187. mutable int _cached_size_;
  188. ::protobuf_sgx_mc_uuid_t* monotonic_counter_id_;
  189. ::std::string* message_;
  190. ::google::protobuf::uint32 monotonic_counter_value_;
  191. friend void protobuf_AddDesc_ProtobufSealerMessages_2eproto();
  192. friend void protobuf_AssignDesc_ProtobufSealerMessages_2eproto();
  193. friend void protobuf_ShutdownFile_ProtobufSealerMessages_2eproto();
  194. void InitAsDefaultInstance();
  195. static protobuf_plaintext_seal_message* default_instance_;
  196. };
  197. // ===================================================================
  198. // ===================================================================
  199. // protobuf_sgx_mc_uuid_t
  200. // required bytes nonce = 1;
  201. inline bool protobuf_sgx_mc_uuid_t::has_nonce() const {
  202. return (_has_bits_[0] & 0x00000001u) != 0;
  203. }
  204. inline void protobuf_sgx_mc_uuid_t::set_has_nonce() {
  205. _has_bits_[0] |= 0x00000001u;
  206. }
  207. inline void protobuf_sgx_mc_uuid_t::clear_has_nonce() {
  208. _has_bits_[0] &= ~0x00000001u;
  209. }
  210. inline void protobuf_sgx_mc_uuid_t::clear_nonce() {
  211. if (nonce_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  212. nonce_->clear();
  213. }
  214. clear_has_nonce();
  215. }
  216. inline const ::std::string& protobuf_sgx_mc_uuid_t::nonce() const {
  217. // @@protoc_insertion_point(field_get:protobuf_sgx_mc_uuid_t.nonce)
  218. return *nonce_;
  219. }
  220. inline void protobuf_sgx_mc_uuid_t::set_nonce(const ::std::string& value) {
  221. set_has_nonce();
  222. if (nonce_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  223. nonce_ = new ::std::string;
  224. }
  225. nonce_->assign(value);
  226. // @@protoc_insertion_point(field_set:protobuf_sgx_mc_uuid_t.nonce)
  227. }
  228. inline void protobuf_sgx_mc_uuid_t::set_nonce(const char* value) {
  229. set_has_nonce();
  230. if (nonce_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  231. nonce_ = new ::std::string;
  232. }
  233. nonce_->assign(value);
  234. // @@protoc_insertion_point(field_set_char:protobuf_sgx_mc_uuid_t.nonce)
  235. }
  236. inline void protobuf_sgx_mc_uuid_t::set_nonce(const void* value, size_t size) {
  237. set_has_nonce();
  238. if (nonce_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  239. nonce_ = new ::std::string;
  240. }
  241. nonce_->assign(reinterpret_cast<const char*>(value), size);
  242. // @@protoc_insertion_point(field_set_pointer:protobuf_sgx_mc_uuid_t.nonce)
  243. }
  244. inline ::std::string* protobuf_sgx_mc_uuid_t::mutable_nonce() {
  245. set_has_nonce();
  246. if (nonce_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  247. nonce_ = new ::std::string;
  248. }
  249. // @@protoc_insertion_point(field_mutable:protobuf_sgx_mc_uuid_t.nonce)
  250. return nonce_;
  251. }
  252. inline ::std::string* protobuf_sgx_mc_uuid_t::release_nonce() {
  253. clear_has_nonce();
  254. if (nonce_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  255. return NULL;
  256. } else {
  257. ::std::string* temp = nonce_;
  258. nonce_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  259. return temp;
  260. }
  261. }
  262. inline void protobuf_sgx_mc_uuid_t::set_allocated_nonce(::std::string* nonce) {
  263. if (nonce_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  264. delete nonce_;
  265. }
  266. if (nonce) {
  267. set_has_nonce();
  268. nonce_ = nonce;
  269. } else {
  270. clear_has_nonce();
  271. nonce_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  272. }
  273. // @@protoc_insertion_point(field_set_allocated:protobuf_sgx_mc_uuid_t.nonce)
  274. }
  275. // required bytes counter_id = 2;
  276. inline bool protobuf_sgx_mc_uuid_t::has_counter_id() const {
  277. return (_has_bits_[0] & 0x00000002u) != 0;
  278. }
  279. inline void protobuf_sgx_mc_uuid_t::set_has_counter_id() {
  280. _has_bits_[0] |= 0x00000002u;
  281. }
  282. inline void protobuf_sgx_mc_uuid_t::clear_has_counter_id() {
  283. _has_bits_[0] &= ~0x00000002u;
  284. }
  285. inline void protobuf_sgx_mc_uuid_t::clear_counter_id() {
  286. if (counter_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  287. counter_id_->clear();
  288. }
  289. clear_has_counter_id();
  290. }
  291. inline const ::std::string& protobuf_sgx_mc_uuid_t::counter_id() const {
  292. // @@protoc_insertion_point(field_get:protobuf_sgx_mc_uuid_t.counter_id)
  293. return *counter_id_;
  294. }
  295. inline void protobuf_sgx_mc_uuid_t::set_counter_id(const ::std::string& value) {
  296. set_has_counter_id();
  297. if (counter_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  298. counter_id_ = new ::std::string;
  299. }
  300. counter_id_->assign(value);
  301. // @@protoc_insertion_point(field_set:protobuf_sgx_mc_uuid_t.counter_id)
  302. }
  303. inline void protobuf_sgx_mc_uuid_t::set_counter_id(const char* value) {
  304. set_has_counter_id();
  305. if (counter_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  306. counter_id_ = new ::std::string;
  307. }
  308. counter_id_->assign(value);
  309. // @@protoc_insertion_point(field_set_char:protobuf_sgx_mc_uuid_t.counter_id)
  310. }
  311. inline void protobuf_sgx_mc_uuid_t::set_counter_id(const void* value, size_t size) {
  312. set_has_counter_id();
  313. if (counter_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  314. counter_id_ = new ::std::string;
  315. }
  316. counter_id_->assign(reinterpret_cast<const char*>(value), size);
  317. // @@protoc_insertion_point(field_set_pointer:protobuf_sgx_mc_uuid_t.counter_id)
  318. }
  319. inline ::std::string* protobuf_sgx_mc_uuid_t::mutable_counter_id() {
  320. set_has_counter_id();
  321. if (counter_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  322. counter_id_ = new ::std::string;
  323. }
  324. // @@protoc_insertion_point(field_mutable:protobuf_sgx_mc_uuid_t.counter_id)
  325. return counter_id_;
  326. }
  327. inline ::std::string* protobuf_sgx_mc_uuid_t::release_counter_id() {
  328. clear_has_counter_id();
  329. if (counter_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  330. return NULL;
  331. } else {
  332. ::std::string* temp = counter_id_;
  333. counter_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  334. return temp;
  335. }
  336. }
  337. inline void protobuf_sgx_mc_uuid_t::set_allocated_counter_id(::std::string* counter_id) {
  338. if (counter_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  339. delete counter_id_;
  340. }
  341. if (counter_id) {
  342. set_has_counter_id();
  343. counter_id_ = counter_id;
  344. } else {
  345. clear_has_counter_id();
  346. counter_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  347. }
  348. // @@protoc_insertion_point(field_set_allocated:protobuf_sgx_mc_uuid_t.counter_id)
  349. }
  350. // -------------------------------------------------------------------
  351. // protobuf_plaintext_seal_message
  352. // required .protobuf_sgx_mc_uuid_t monotonic_counter_id = 1;
  353. inline bool protobuf_plaintext_seal_message::has_monotonic_counter_id() const {
  354. return (_has_bits_[0] & 0x00000001u) != 0;
  355. }
  356. inline void protobuf_plaintext_seal_message::set_has_monotonic_counter_id() {
  357. _has_bits_[0] |= 0x00000001u;
  358. }
  359. inline void protobuf_plaintext_seal_message::clear_has_monotonic_counter_id() {
  360. _has_bits_[0] &= ~0x00000001u;
  361. }
  362. inline void protobuf_plaintext_seal_message::clear_monotonic_counter_id() {
  363. if (monotonic_counter_id_ != NULL) monotonic_counter_id_->::protobuf_sgx_mc_uuid_t::Clear();
  364. clear_has_monotonic_counter_id();
  365. }
  366. inline const ::protobuf_sgx_mc_uuid_t& protobuf_plaintext_seal_message::monotonic_counter_id() const {
  367. // @@protoc_insertion_point(field_get:protobuf_plaintext_seal_message.monotonic_counter_id)
  368. return monotonic_counter_id_ != NULL ? *monotonic_counter_id_ : *default_instance_->monotonic_counter_id_;
  369. }
  370. inline ::protobuf_sgx_mc_uuid_t* protobuf_plaintext_seal_message::mutable_monotonic_counter_id() {
  371. set_has_monotonic_counter_id();
  372. if (monotonic_counter_id_ == NULL) monotonic_counter_id_ = new ::protobuf_sgx_mc_uuid_t;
  373. // @@protoc_insertion_point(field_mutable:protobuf_plaintext_seal_message.monotonic_counter_id)
  374. return monotonic_counter_id_;
  375. }
  376. inline ::protobuf_sgx_mc_uuid_t* protobuf_plaintext_seal_message::release_monotonic_counter_id() {
  377. clear_has_monotonic_counter_id();
  378. ::protobuf_sgx_mc_uuid_t* temp = monotonic_counter_id_;
  379. monotonic_counter_id_ = NULL;
  380. return temp;
  381. }
  382. inline void protobuf_plaintext_seal_message::set_allocated_monotonic_counter_id(::protobuf_sgx_mc_uuid_t* monotonic_counter_id) {
  383. delete monotonic_counter_id_;
  384. monotonic_counter_id_ = monotonic_counter_id;
  385. if (monotonic_counter_id) {
  386. set_has_monotonic_counter_id();
  387. } else {
  388. clear_has_monotonic_counter_id();
  389. }
  390. // @@protoc_insertion_point(field_set_allocated:protobuf_plaintext_seal_message.monotonic_counter_id)
  391. }
  392. // required uint32 monotonic_counter_value = 2;
  393. inline bool protobuf_plaintext_seal_message::has_monotonic_counter_value() const {
  394. return (_has_bits_[0] & 0x00000002u) != 0;
  395. }
  396. inline void protobuf_plaintext_seal_message::set_has_monotonic_counter_value() {
  397. _has_bits_[0] |= 0x00000002u;
  398. }
  399. inline void protobuf_plaintext_seal_message::clear_has_monotonic_counter_value() {
  400. _has_bits_[0] &= ~0x00000002u;
  401. }
  402. inline void protobuf_plaintext_seal_message::clear_monotonic_counter_value() {
  403. monotonic_counter_value_ = 0u;
  404. clear_has_monotonic_counter_value();
  405. }
  406. inline ::google::protobuf::uint32 protobuf_plaintext_seal_message::monotonic_counter_value() const {
  407. // @@protoc_insertion_point(field_get:protobuf_plaintext_seal_message.monotonic_counter_value)
  408. return monotonic_counter_value_;
  409. }
  410. inline void protobuf_plaintext_seal_message::set_monotonic_counter_value(::google::protobuf::uint32 value) {
  411. set_has_monotonic_counter_value();
  412. monotonic_counter_value_ = value;
  413. // @@protoc_insertion_point(field_set:protobuf_plaintext_seal_message.monotonic_counter_value)
  414. }
  415. // required bytes message = 3;
  416. inline bool protobuf_plaintext_seal_message::has_message() const {
  417. return (_has_bits_[0] & 0x00000004u) != 0;
  418. }
  419. inline void protobuf_plaintext_seal_message::set_has_message() {
  420. _has_bits_[0] |= 0x00000004u;
  421. }
  422. inline void protobuf_plaintext_seal_message::clear_has_message() {
  423. _has_bits_[0] &= ~0x00000004u;
  424. }
  425. inline void protobuf_plaintext_seal_message::clear_message() {
  426. if (message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  427. message_->clear();
  428. }
  429. clear_has_message();
  430. }
  431. inline const ::std::string& protobuf_plaintext_seal_message::message() const {
  432. // @@protoc_insertion_point(field_get:protobuf_plaintext_seal_message.message)
  433. return *message_;
  434. }
  435. inline void protobuf_plaintext_seal_message::set_message(const ::std::string& value) {
  436. set_has_message();
  437. if (message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  438. message_ = new ::std::string;
  439. }
  440. message_->assign(value);
  441. // @@protoc_insertion_point(field_set:protobuf_plaintext_seal_message.message)
  442. }
  443. inline void protobuf_plaintext_seal_message::set_message(const char* value) {
  444. set_has_message();
  445. if (message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  446. message_ = new ::std::string;
  447. }
  448. message_->assign(value);
  449. // @@protoc_insertion_point(field_set_char:protobuf_plaintext_seal_message.message)
  450. }
  451. inline void protobuf_plaintext_seal_message::set_message(const void* value, size_t size) {
  452. set_has_message();
  453. if (message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  454. message_ = new ::std::string;
  455. }
  456. message_->assign(reinterpret_cast<const char*>(value), size);
  457. // @@protoc_insertion_point(field_set_pointer:protobuf_plaintext_seal_message.message)
  458. }
  459. inline ::std::string* protobuf_plaintext_seal_message::mutable_message() {
  460. set_has_message();
  461. if (message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  462. message_ = new ::std::string;
  463. }
  464. // @@protoc_insertion_point(field_mutable:protobuf_plaintext_seal_message.message)
  465. return message_;
  466. }
  467. inline ::std::string* protobuf_plaintext_seal_message::release_message() {
  468. clear_has_message();
  469. if (message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  470. return NULL;
  471. } else {
  472. ::std::string* temp = message_;
  473. message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  474. return temp;
  475. }
  476. }
  477. inline void protobuf_plaintext_seal_message::set_allocated_message(::std::string* message) {
  478. if (message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  479. delete message_;
  480. }
  481. if (message) {
  482. set_has_message();
  483. message_ = message;
  484. } else {
  485. clear_has_message();
  486. message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  487. }
  488. // @@protoc_insertion_point(field_set_allocated:protobuf_plaintext_seal_message.message)
  489. }
  490. // @@protoc_insertion_point(namespace_scope)
  491. #ifndef SWIG
  492. namespace google {
  493. namespace protobuf {
  494. } // namespace google
  495. } // namespace protobuf
  496. #endif // SWIG
  497. // @@protoc_insertion_point(global_scope)
  498. #endif // PROTOBUF_ProtobufSealerMessages_2eproto__INCLUDED