mirror of
https://gitee.com/farsunset/cim.git
synced 2025-06-17 15:45:24 +08:00
700 lines
25 KiB
C++
700 lines
25 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Message.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_Message_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_Message_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3009000
|
|
#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 3009001 < 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/port_undef.inc>
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/arena.h>
|
|
#include <google/protobuf/arenastring.h>
|
|
#include <google/protobuf/generated_message_table_driven.h>
|
|
#include <google/protobuf/generated_message_util.h>
|
|
#include <google/protobuf/inlined_string_field.h>
|
|
#include <google/protobuf/metadata.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/message.h>
|
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_Message_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_Message_2eproto {
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
|
};
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message_2eproto;
|
|
class Model;
|
|
class ModelDefaultTypeInternal;
|
|
extern ModelDefaultTypeInternal _Model_default_instance_;
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::Model* Arena::CreateMaybeMessage<::Model>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// ===================================================================
|
|
|
|
class Model :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Model) */ {
|
|
public:
|
|
Model();
|
|
virtual ~Model();
|
|
|
|
Model(const Model& from);
|
|
Model(Model&& from) noexcept
|
|
: Model() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline Model& operator=(const Model& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline Model& operator=(Model&& from) noexcept {
|
|
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
|
if (this != &from) InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return GetMetadataStatic().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return GetMetadataStatic().reflection;
|
|
}
|
|
static const Model& default_instance();
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
static inline const Model* internal_default_instance() {
|
|
return reinterpret_cast<const Model*>(
|
|
&_Model_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(Model& a, Model& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(Model* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline Model* New() const final {
|
|
return CreateMaybeMessage<Model>(nullptr);
|
|
}
|
|
|
|
Model* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<Model>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const Model& from);
|
|
void MergeFrom(const Model& from);
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
#else
|
|
bool MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
void SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
inline void SharedCtor();
|
|
inline void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(Model* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "Model";
|
|
}
|
|
private:
|
|
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
|
|
return nullptr;
|
|
}
|
|
inline void* MaybeArenaPtr() const {
|
|
return nullptr;
|
|
}
|
|
public:
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
private:
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Message_2eproto);
|
|
return ::descriptor_table_Message_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kActionFieldNumber = 2,
|
|
kContentFieldNumber = 3,
|
|
kSenderFieldNumber = 4,
|
|
kReceiverFieldNumber = 5,
|
|
kExtraFieldNumber = 6,
|
|
kTitleFieldNumber = 7,
|
|
kFormatFieldNumber = 8,
|
|
kIdFieldNumber = 1,
|
|
kTimestampFieldNumber = 9,
|
|
};
|
|
// string action = 2;
|
|
void clear_action();
|
|
const std::string& action() const;
|
|
void set_action(const std::string& value);
|
|
void set_action(std::string&& value);
|
|
void set_action(const char* value);
|
|
void set_action(const char* value, size_t size);
|
|
std::string* mutable_action();
|
|
std::string* release_action();
|
|
void set_allocated_action(std::string* action);
|
|
|
|
// string content = 3;
|
|
void clear_content();
|
|
const std::string& content() const;
|
|
void set_content(const std::string& value);
|
|
void set_content(std::string&& value);
|
|
void set_content(const char* value);
|
|
void set_content(const char* value, size_t size);
|
|
std::string* mutable_content();
|
|
std::string* release_content();
|
|
void set_allocated_content(std::string* content);
|
|
|
|
// string sender = 4;
|
|
void clear_sender();
|
|
const std::string& sender() const;
|
|
void set_sender(const std::string& value);
|
|
void set_sender(std::string&& value);
|
|
void set_sender(const char* value);
|
|
void set_sender(const char* value, size_t size);
|
|
std::string* mutable_sender();
|
|
std::string* release_sender();
|
|
void set_allocated_sender(std::string* sender);
|
|
|
|
// string receiver = 5;
|
|
void clear_receiver();
|
|
const std::string& receiver() const;
|
|
void set_receiver(const std::string& value);
|
|
void set_receiver(std::string&& value);
|
|
void set_receiver(const char* value);
|
|
void set_receiver(const char* value, size_t size);
|
|
std::string* mutable_receiver();
|
|
std::string* release_receiver();
|
|
void set_allocated_receiver(std::string* receiver);
|
|
|
|
// string extra = 6;
|
|
void clear_extra();
|
|
const std::string& extra() const;
|
|
void set_extra(const std::string& value);
|
|
void set_extra(std::string&& value);
|
|
void set_extra(const char* value);
|
|
void set_extra(const char* value, size_t size);
|
|
std::string* mutable_extra();
|
|
std::string* release_extra();
|
|
void set_allocated_extra(std::string* extra);
|
|
|
|
// string title = 7;
|
|
void clear_title();
|
|
const std::string& title() const;
|
|
void set_title(const std::string& value);
|
|
void set_title(std::string&& value);
|
|
void set_title(const char* value);
|
|
void set_title(const char* value, size_t size);
|
|
std::string* mutable_title();
|
|
std::string* release_title();
|
|
void set_allocated_title(std::string* title);
|
|
|
|
// string format = 8;
|
|
void clear_format();
|
|
const std::string& format() const;
|
|
void set_format(const std::string& value);
|
|
void set_format(std::string&& value);
|
|
void set_format(const char* value);
|
|
void set_format(const char* value, size_t size);
|
|
std::string* mutable_format();
|
|
std::string* release_format();
|
|
void set_allocated_format(std::string* format);
|
|
|
|
// int64 id = 1;
|
|
void clear_id();
|
|
::PROTOBUF_NAMESPACE_ID::int64 id() const;
|
|
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
|
|
// int64 timestamp = 9;
|
|
void clear_timestamp();
|
|
::PROTOBUF_NAMESPACE_ID::int64 timestamp() const;
|
|
void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
|
|
// @@protoc_insertion_point(class_scope:Model)
|
|
private:
|
|
class _Internal;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr action_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sender_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr receiver_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extra_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr format_;
|
|
::PROTOBUF_NAMESPACE_ID::int64 id_;
|
|
::PROTOBUF_NAMESPACE_ID::int64 timestamp_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_Message_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// Model
|
|
|
|
// int64 id = 1;
|
|
inline void Model::clear_id() {
|
|
id_ = PROTOBUF_LONGLONG(0);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 Model::id() const {
|
|
// @@protoc_insertion_point(field_get:Model.id)
|
|
return id_;
|
|
}
|
|
inline void Model::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
|
|
id_ = value;
|
|
// @@protoc_insertion_point(field_set:Model.id)
|
|
}
|
|
|
|
// string action = 2;
|
|
inline void Model::clear_action() {
|
|
action_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::action() const {
|
|
// @@protoc_insertion_point(field_get:Model.action)
|
|
return action_.GetNoArena();
|
|
}
|
|
inline void Model::set_action(const std::string& value) {
|
|
|
|
action_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.action)
|
|
}
|
|
inline void Model::set_action(std::string&& value) {
|
|
|
|
action_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.action)
|
|
}
|
|
inline void Model::set_action(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
action_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.action)
|
|
}
|
|
inline void Model::set_action(const char* value, size_t size) {
|
|
|
|
action_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.action)
|
|
}
|
|
inline std::string* Model::mutable_action() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.action)
|
|
return action_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_action() {
|
|
// @@protoc_insertion_point(field_release:Model.action)
|
|
|
|
return action_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_action(std::string* action) {
|
|
if (action != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
action_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), action);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.action)
|
|
}
|
|
|
|
// string content = 3;
|
|
inline void Model::clear_content() {
|
|
content_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::content() const {
|
|
// @@protoc_insertion_point(field_get:Model.content)
|
|
return content_.GetNoArena();
|
|
}
|
|
inline void Model::set_content(const std::string& value) {
|
|
|
|
content_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.content)
|
|
}
|
|
inline void Model::set_content(std::string&& value) {
|
|
|
|
content_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.content)
|
|
}
|
|
inline void Model::set_content(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
content_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.content)
|
|
}
|
|
inline void Model::set_content(const char* value, size_t size) {
|
|
|
|
content_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.content)
|
|
}
|
|
inline std::string* Model::mutable_content() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.content)
|
|
return content_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_content() {
|
|
// @@protoc_insertion_point(field_release:Model.content)
|
|
|
|
return content_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_content(std::string* content) {
|
|
if (content != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
content_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.content)
|
|
}
|
|
|
|
// string sender = 4;
|
|
inline void Model::clear_sender() {
|
|
sender_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::sender() const {
|
|
// @@protoc_insertion_point(field_get:Model.sender)
|
|
return sender_.GetNoArena();
|
|
}
|
|
inline void Model::set_sender(const std::string& value) {
|
|
|
|
sender_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.sender)
|
|
}
|
|
inline void Model::set_sender(std::string&& value) {
|
|
|
|
sender_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.sender)
|
|
}
|
|
inline void Model::set_sender(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
sender_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.sender)
|
|
}
|
|
inline void Model::set_sender(const char* value, size_t size) {
|
|
|
|
sender_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.sender)
|
|
}
|
|
inline std::string* Model::mutable_sender() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.sender)
|
|
return sender_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_sender() {
|
|
// @@protoc_insertion_point(field_release:Model.sender)
|
|
|
|
return sender_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_sender(std::string* sender) {
|
|
if (sender != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
sender_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sender);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.sender)
|
|
}
|
|
|
|
// string receiver = 5;
|
|
inline void Model::clear_receiver() {
|
|
receiver_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::receiver() const {
|
|
// @@protoc_insertion_point(field_get:Model.receiver)
|
|
return receiver_.GetNoArena();
|
|
}
|
|
inline void Model::set_receiver(const std::string& value) {
|
|
|
|
receiver_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.receiver)
|
|
}
|
|
inline void Model::set_receiver(std::string&& value) {
|
|
|
|
receiver_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.receiver)
|
|
}
|
|
inline void Model::set_receiver(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
receiver_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.receiver)
|
|
}
|
|
inline void Model::set_receiver(const char* value, size_t size) {
|
|
|
|
receiver_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.receiver)
|
|
}
|
|
inline std::string* Model::mutable_receiver() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.receiver)
|
|
return receiver_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_receiver() {
|
|
// @@protoc_insertion_point(field_release:Model.receiver)
|
|
|
|
return receiver_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_receiver(std::string* receiver) {
|
|
if (receiver != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
receiver_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiver);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.receiver)
|
|
}
|
|
|
|
// string extra = 6;
|
|
inline void Model::clear_extra() {
|
|
extra_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::extra() const {
|
|
// @@protoc_insertion_point(field_get:Model.extra)
|
|
return extra_.GetNoArena();
|
|
}
|
|
inline void Model::set_extra(const std::string& value) {
|
|
|
|
extra_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.extra)
|
|
}
|
|
inline void Model::set_extra(std::string&& value) {
|
|
|
|
extra_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.extra)
|
|
}
|
|
inline void Model::set_extra(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
extra_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.extra)
|
|
}
|
|
inline void Model::set_extra(const char* value, size_t size) {
|
|
|
|
extra_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.extra)
|
|
}
|
|
inline std::string* Model::mutable_extra() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.extra)
|
|
return extra_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_extra() {
|
|
// @@protoc_insertion_point(field_release:Model.extra)
|
|
|
|
return extra_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_extra(std::string* extra) {
|
|
if (extra != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
extra_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extra);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.extra)
|
|
}
|
|
|
|
// string title = 7;
|
|
inline void Model::clear_title() {
|
|
title_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::title() const {
|
|
// @@protoc_insertion_point(field_get:Model.title)
|
|
return title_.GetNoArena();
|
|
}
|
|
inline void Model::set_title(const std::string& value) {
|
|
|
|
title_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.title)
|
|
}
|
|
inline void Model::set_title(std::string&& value) {
|
|
|
|
title_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.title)
|
|
}
|
|
inline void Model::set_title(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
title_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.title)
|
|
}
|
|
inline void Model::set_title(const char* value, size_t size) {
|
|
|
|
title_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.title)
|
|
}
|
|
inline std::string* Model::mutable_title() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.title)
|
|
return title_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_title() {
|
|
// @@protoc_insertion_point(field_release:Model.title)
|
|
|
|
return title_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_title(std::string* title) {
|
|
if (title != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
title_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.title)
|
|
}
|
|
|
|
// string format = 8;
|
|
inline void Model::clear_format() {
|
|
format_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline const std::string& Model::format() const {
|
|
// @@protoc_insertion_point(field_get:Model.format)
|
|
return format_.GetNoArena();
|
|
}
|
|
inline void Model::set_format(const std::string& value) {
|
|
|
|
format_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
|
|
// @@protoc_insertion_point(field_set:Model.format)
|
|
}
|
|
inline void Model::set_format(std::string&& value) {
|
|
|
|
format_.SetNoArena(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
// @@protoc_insertion_point(field_set_rvalue:Model.format)
|
|
}
|
|
inline void Model::set_format(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
format_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
// @@protoc_insertion_point(field_set_char:Model.format)
|
|
}
|
|
inline void Model::set_format(const char* value, size_t size) {
|
|
|
|
format_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
|
// @@protoc_insertion_point(field_set_pointer:Model.format)
|
|
}
|
|
inline std::string* Model::mutable_format() {
|
|
|
|
// @@protoc_insertion_point(field_mutable:Model.format)
|
|
return format_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline std::string* Model::release_format() {
|
|
// @@protoc_insertion_point(field_release:Model.format)
|
|
|
|
return format_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
inline void Model::set_allocated_format(std::string* format) {
|
|
if (format != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
format_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), format);
|
|
// @@protoc_insertion_point(field_set_allocated:Model.format)
|
|
}
|
|
|
|
// int64 timestamp = 9;
|
|
inline void Model::clear_timestamp() {
|
|
timestamp_ = PROTOBUF_LONGLONG(0);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 Model::timestamp() const {
|
|
// @@protoc_insertion_point(field_get:Model.timestamp)
|
|
return timestamp_;
|
|
}
|
|
inline void Model::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
|
|
timestamp_ = value;
|
|
// @@protoc_insertion_point(field_set:Model.timestamp)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Message_2eproto
|