You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1446 lines
50 KiB
1446 lines
50 KiB
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: test.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_test_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_test_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3018000
|
|
#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 3018001 < 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/metadata_lite.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/generated_enum_reflection.h>
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_test_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_test_2eproto {
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
|
|
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_test_2eproto;
|
|
namespace proto {
|
|
class Order;
|
|
struct OrderDefaultTypeInternal;
|
|
extern OrderDefaultTypeInternal _Order_default_instance_;
|
|
class OrderRequest;
|
|
struct OrderRequestDefaultTypeInternal;
|
|
extern OrderRequestDefaultTypeInternal _OrderRequest_default_instance_;
|
|
class OrderResp;
|
|
struct OrderRespDefaultTypeInternal;
|
|
extern OrderRespDefaultTypeInternal _OrderResp_default_instance_;
|
|
class Order_Producets;
|
|
struct Order_ProducetsDefaultTypeInternal;
|
|
extern Order_ProducetsDefaultTypeInternal _Order_Producets_default_instance_;
|
|
} // namespace proto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::proto::Order* Arena::CreateMaybeMessage<::proto::Order>(Arena*);
|
|
template<> ::proto::OrderRequest* Arena::CreateMaybeMessage<::proto::OrderRequest>(Arena*);
|
|
template<> ::proto::OrderResp* Arena::CreateMaybeMessage<::proto::OrderResp>(Arena*);
|
|
template<> ::proto::Order_Producets* Arena::CreateMaybeMessage<::proto::Order_Producets>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace proto {
|
|
|
|
enum OrderStatus : int {
|
|
FIRST_VAL = 0,
|
|
SECOND_VAL = 1,
|
|
OrderStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
|
|
OrderStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
|
|
};
|
|
bool OrderStatus_IsValid(int value);
|
|
constexpr OrderStatus OrderStatus_MIN = FIRST_VAL;
|
|
constexpr OrderStatus OrderStatus_MAX = SECOND_VAL;
|
|
constexpr int OrderStatus_ARRAYSIZE = OrderStatus_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrderStatus_descriptor();
|
|
template<typename T>
|
|
inline const std::string& OrderStatus_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, OrderStatus>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function OrderStatus_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
OrderStatus_descriptor(), enum_t_value);
|
|
}
|
|
inline bool OrderStatus_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OrderStatus* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<OrderStatus>(
|
|
OrderStatus_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
class Order_Producets final :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Order.Producets) */ {
|
|
public:
|
|
inline Order_Producets() : Order_Producets(nullptr) {}
|
|
~Order_Producets() override;
|
|
explicit constexpr Order_Producets(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
Order_Producets(const Order_Producets& from);
|
|
Order_Producets(Order_Producets&& from) noexcept
|
|
: Order_Producets() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline Order_Producets& operator=(const Order_Producets& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline Order_Producets& operator=(Order_Producets&& from) noexcept {
|
|
if (this == &from) return *this;
|
|
if (GetOwningArena() == from.GetOwningArena()
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
|
&& GetOwningArena() != nullptr
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
|
) {
|
|
InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return default_instance().GetMetadata().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return default_instance().GetMetadata().reflection;
|
|
}
|
|
static const Order_Producets& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const Order_Producets* internal_default_instance() {
|
|
return reinterpret_cast<const Order_Producets*>(
|
|
&_Order_Producets_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(Order_Producets& a, Order_Producets& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(Order_Producets* other) {
|
|
if (other == this) return;
|
|
if (GetOwningArena() == other->GetOwningArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(Order_Producets* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline Order_Producets* New() const final {
|
|
return new Order_Producets();
|
|
}
|
|
|
|
Order_Producets* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<Order_Producets>(arena);
|
|
}
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
|
void CopyFrom(const Order_Producets& from);
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
|
void MergeFrom(const Order_Producets& from);
|
|
private:
|
|
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
|
|
public:
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
void SharedCtor();
|
|
void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(Order_Producets* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "proto.Order.Producets";
|
|
}
|
|
protected:
|
|
explicit Order_Producets(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned = false);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
static const ClassData _class_data_;
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kTitleFieldNumber = 2,
|
|
kIdFieldNumber = 1,
|
|
kPriceFieldNumber = 3,
|
|
kNumFieldNumber = 4,
|
|
};
|
|
// string title = 2;
|
|
void clear_title();
|
|
const std::string& title() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_title(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_title();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_title();
|
|
void set_allocated_title(std::string* title);
|
|
private:
|
|
const std::string& _internal_title() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value);
|
|
std::string* _internal_mutable_title();
|
|
public:
|
|
|
|
// int64 id = 1;
|
|
void clear_id();
|
|
::PROTOBUF_NAMESPACE_ID::int64 id() const;
|
|
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const;
|
|
void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
public:
|
|
|
|
// double price = 3;
|
|
void clear_price();
|
|
double price() const;
|
|
void set_price(double value);
|
|
private:
|
|
double _internal_price() const;
|
|
void _internal_set_price(double value);
|
|
public:
|
|
|
|
// int32 num = 4;
|
|
void clear_num();
|
|
::PROTOBUF_NAMESPACE_ID::int32 num() const;
|
|
void set_num(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int32 _internal_num() const;
|
|
void _internal_set_num(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:proto.Order.Producets)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_;
|
|
::PROTOBUF_NAMESPACE_ID::int64 id_;
|
|
double price_;
|
|
::PROTOBUF_NAMESPACE_ID::int32 num_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_test_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class Order final :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Order) */ {
|
|
public:
|
|
inline Order() : Order(nullptr) {}
|
|
~Order() override;
|
|
explicit constexpr Order(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
Order(const Order& from);
|
|
Order(Order&& from) noexcept
|
|
: Order() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline Order& operator=(const Order& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline Order& operator=(Order&& from) noexcept {
|
|
if (this == &from) return *this;
|
|
if (GetOwningArena() == from.GetOwningArena()
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
|
&& GetOwningArena() != nullptr
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
|
) {
|
|
InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return default_instance().GetMetadata().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return default_instance().GetMetadata().reflection;
|
|
}
|
|
static const Order& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const Order* internal_default_instance() {
|
|
return reinterpret_cast<const Order*>(
|
|
&_Order_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
1;
|
|
|
|
friend void swap(Order& a, Order& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(Order* other) {
|
|
if (other == this) return;
|
|
if (GetOwningArena() == other->GetOwningArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(Order* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline Order* New() const final {
|
|
return new Order();
|
|
}
|
|
|
|
Order* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<Order>(arena);
|
|
}
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
|
void CopyFrom(const Order& from);
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
|
void MergeFrom(const Order& from);
|
|
private:
|
|
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
|
|
public:
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
void SharedCtor();
|
|
void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(Order* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "proto.Order";
|
|
}
|
|
protected:
|
|
explicit Order(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned = false);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
static const ClassData _class_data_;
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef Order_Producets Producets;
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kNoFieldNumber = 2,
|
|
kTelFieldNumber = 3,
|
|
kAddressFieldNumber = 4,
|
|
kAddTimeFieldNumber = 5,
|
|
kProducetsFieldNumber = 7,
|
|
kIdFieldNumber = 1,
|
|
kStatusFieldNumber = 6,
|
|
};
|
|
// string no = 2;
|
|
void clear_no();
|
|
const std::string& no() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_no(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_no();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_no();
|
|
void set_allocated_no(std::string* no);
|
|
private:
|
|
const std::string& _internal_no() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_no(const std::string& value);
|
|
std::string* _internal_mutable_no();
|
|
public:
|
|
|
|
// string tel = 3;
|
|
void clear_tel();
|
|
const std::string& tel() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_tel(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_tel();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_tel();
|
|
void set_allocated_tel(std::string* tel);
|
|
private:
|
|
const std::string& _internal_tel() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_tel(const std::string& value);
|
|
std::string* _internal_mutable_tel();
|
|
public:
|
|
|
|
// string address = 4;
|
|
void clear_address();
|
|
const std::string& address() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_address(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_address();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_address();
|
|
void set_allocated_address(std::string* address);
|
|
private:
|
|
const std::string& _internal_address() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_address(const std::string& value);
|
|
std::string* _internal_mutable_address();
|
|
public:
|
|
|
|
// string addTime = 5;
|
|
void clear_addtime();
|
|
const std::string& addtime() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_addtime(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_addtime();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_addtime();
|
|
void set_allocated_addtime(std::string* addtime);
|
|
private:
|
|
const std::string& _internal_addtime() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_addtime(const std::string& value);
|
|
std::string* _internal_mutable_addtime();
|
|
public:
|
|
|
|
// .proto.Order.Producets producets = 7;
|
|
bool has_producets() const;
|
|
private:
|
|
bool _internal_has_producets() const;
|
|
public:
|
|
void clear_producets();
|
|
const ::proto::Order_Producets& producets() const;
|
|
PROTOBUF_MUST_USE_RESULT ::proto::Order_Producets* release_producets();
|
|
::proto::Order_Producets* mutable_producets();
|
|
void set_allocated_producets(::proto::Order_Producets* producets);
|
|
private:
|
|
const ::proto::Order_Producets& _internal_producets() const;
|
|
::proto::Order_Producets* _internal_mutable_producets();
|
|
public:
|
|
void unsafe_arena_set_allocated_producets(
|
|
::proto::Order_Producets* producets);
|
|
::proto::Order_Producets* unsafe_arena_release_producets();
|
|
|
|
// int64 id = 1;
|
|
void clear_id();
|
|
::PROTOBUF_NAMESPACE_ID::int64 id() const;
|
|
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const;
|
|
void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
public:
|
|
|
|
// .proto.OrderStatus status = 6;
|
|
void clear_status();
|
|
::proto::OrderStatus status() const;
|
|
void set_status(::proto::OrderStatus value);
|
|
private:
|
|
::proto::OrderStatus _internal_status() const;
|
|
void _internal_set_status(::proto::OrderStatus value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:proto.Order)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr no_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tel_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr addtime_;
|
|
::proto::Order_Producets* producets_;
|
|
::PROTOBUF_NAMESPACE_ID::int64 id_;
|
|
int status_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_test_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class OrderRequest final :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.OrderRequest) */ {
|
|
public:
|
|
inline OrderRequest() : OrderRequest(nullptr) {}
|
|
~OrderRequest() override;
|
|
explicit constexpr OrderRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
OrderRequest(const OrderRequest& from);
|
|
OrderRequest(OrderRequest&& from) noexcept
|
|
: OrderRequest() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline OrderRequest& operator=(const OrderRequest& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline OrderRequest& operator=(OrderRequest&& from) noexcept {
|
|
if (this == &from) return *this;
|
|
if (GetOwningArena() == from.GetOwningArena()
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
|
&& GetOwningArena() != nullptr
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
|
) {
|
|
InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return default_instance().GetMetadata().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return default_instance().GetMetadata().reflection;
|
|
}
|
|
static const OrderRequest& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const OrderRequest* internal_default_instance() {
|
|
return reinterpret_cast<const OrderRequest*>(
|
|
&_OrderRequest_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
2;
|
|
|
|
friend void swap(OrderRequest& a, OrderRequest& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(OrderRequest* other) {
|
|
if (other == this) return;
|
|
if (GetOwningArena() == other->GetOwningArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(OrderRequest* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline OrderRequest* New() const final {
|
|
return new OrderRequest();
|
|
}
|
|
|
|
OrderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<OrderRequest>(arena);
|
|
}
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
|
void CopyFrom(const OrderRequest& from);
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
|
void MergeFrom(const OrderRequest& from);
|
|
private:
|
|
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
|
|
public:
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
void SharedCtor();
|
|
void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(OrderRequest* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "proto.OrderRequest";
|
|
}
|
|
protected:
|
|
explicit OrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned = false);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
static const ClassData _class_data_;
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kActivityTypeFieldNumber = 1,
|
|
};
|
|
// int32 activityType = 1;
|
|
void clear_activitytype();
|
|
::PROTOBUF_NAMESPACE_ID::int32 activitytype() const;
|
|
void set_activitytype(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int32 _internal_activitytype() const;
|
|
void _internal_set_activitytype(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:proto.OrderRequest)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::int32 activitytype_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_test_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class OrderResp final :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.OrderResp) */ {
|
|
public:
|
|
inline OrderResp() : OrderResp(nullptr) {}
|
|
~OrderResp() override;
|
|
explicit constexpr OrderResp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
OrderResp(const OrderResp& from);
|
|
OrderResp(OrderResp&& from) noexcept
|
|
: OrderResp() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline OrderResp& operator=(const OrderResp& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline OrderResp& operator=(OrderResp&& from) noexcept {
|
|
if (this == &from) return *this;
|
|
if (GetOwningArena() == from.GetOwningArena()
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
|
&& GetOwningArena() != nullptr
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
|
) {
|
|
InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return default_instance().GetMetadata().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return default_instance().GetMetadata().reflection;
|
|
}
|
|
static const OrderResp& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const OrderResp* internal_default_instance() {
|
|
return reinterpret_cast<const OrderResp*>(
|
|
&_OrderResp_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
3;
|
|
|
|
friend void swap(OrderResp& a, OrderResp& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(OrderResp* other) {
|
|
if (other == this) return;
|
|
if (GetOwningArena() == other->GetOwningArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(OrderResp* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline OrderResp* New() const final {
|
|
return new OrderResp();
|
|
}
|
|
|
|
OrderResp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<OrderResp>(arena);
|
|
}
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
|
void CopyFrom(const OrderResp& from);
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
|
void MergeFrom(const OrderResp& from);
|
|
private:
|
|
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
|
|
public:
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
void SharedCtor();
|
|
void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(OrderResp* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "proto.OrderResp";
|
|
}
|
|
protected:
|
|
explicit OrderResp(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned = false);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
static const ClassData _class_data_;
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kCodeFieldNumber = 2,
|
|
kMsgFieldNumber = 3,
|
|
kDiscountAmountFieldNumber = 1,
|
|
};
|
|
// string code = 2;
|
|
void clear_code();
|
|
const std::string& code() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_code(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_code();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_code();
|
|
void set_allocated_code(std::string* code);
|
|
private:
|
|
const std::string& _internal_code() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_code(const std::string& value);
|
|
std::string* _internal_mutable_code();
|
|
public:
|
|
|
|
// string msg = 3;
|
|
void clear_msg();
|
|
const std::string& msg() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_msg(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_msg();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_msg();
|
|
void set_allocated_msg(std::string* msg);
|
|
private:
|
|
const std::string& _internal_msg() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_msg(const std::string& value);
|
|
std::string* _internal_mutable_msg();
|
|
public:
|
|
|
|
// int32 discountAmount = 1;
|
|
void clear_discountamount();
|
|
::PROTOBUF_NAMESPACE_ID::int32 discountamount() const;
|
|
void set_discountamount(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int32 _internal_discountamount() const;
|
|
void _internal_set_discountamount(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:proto.OrderResp)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr code_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_;
|
|
::PROTOBUF_NAMESPACE_ID::int32 discountamount_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_test_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// Order_Producets
|
|
|
|
// int64 id = 1;
|
|
inline void Order_Producets::clear_id() {
|
|
id_ = int64_t{0};
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 Order_Producets::_internal_id() const {
|
|
return id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 Order_Producets::id() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.Producets.id)
|
|
return _internal_id();
|
|
}
|
|
inline void Order_Producets::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
|
|
id_ = value;
|
|
}
|
|
inline void Order_Producets::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
_internal_set_id(value);
|
|
// @@protoc_insertion_point(field_set:proto.Order.Producets.id)
|
|
}
|
|
|
|
// string title = 2;
|
|
inline void Order_Producets::clear_title() {
|
|
title_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Order_Producets::title() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.Producets.title)
|
|
return _internal_title();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void Order_Producets::set_title(ArgT0&& arg0, ArgT... args) {
|
|
|
|
title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.Order.Producets.title)
|
|
}
|
|
inline std::string* Order_Producets::mutable_title() {
|
|
std::string* _s = _internal_mutable_title();
|
|
// @@protoc_insertion_point(field_mutable:proto.Order.Producets.title)
|
|
return _s;
|
|
}
|
|
inline const std::string& Order_Producets::_internal_title() const {
|
|
return title_.Get();
|
|
}
|
|
inline void Order_Producets::_internal_set_title(const std::string& value) {
|
|
|
|
title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order_Producets::_internal_mutable_title() {
|
|
|
|
return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order_Producets::release_title() {
|
|
// @@protoc_insertion_point(field_release:proto.Order.Producets.title)
|
|
return title_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void Order_Producets::set_allocated_title(std::string* title) {
|
|
if (title != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.Order.Producets.title)
|
|
}
|
|
|
|
// double price = 3;
|
|
inline void Order_Producets::clear_price() {
|
|
price_ = 0;
|
|
}
|
|
inline double Order_Producets::_internal_price() const {
|
|
return price_;
|
|
}
|
|
inline double Order_Producets::price() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.Producets.price)
|
|
return _internal_price();
|
|
}
|
|
inline void Order_Producets::_internal_set_price(double value) {
|
|
|
|
price_ = value;
|
|
}
|
|
inline void Order_Producets::set_price(double value) {
|
|
_internal_set_price(value);
|
|
// @@protoc_insertion_point(field_set:proto.Order.Producets.price)
|
|
}
|
|
|
|
// int32 num = 4;
|
|
inline void Order_Producets::clear_num() {
|
|
num_ = 0;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int32 Order_Producets::_internal_num() const {
|
|
return num_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int32 Order_Producets::num() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.Producets.num)
|
|
return _internal_num();
|
|
}
|
|
inline void Order_Producets::_internal_set_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
|
num_ = value;
|
|
}
|
|
inline void Order_Producets::set_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
_internal_set_num(value);
|
|
// @@protoc_insertion_point(field_set:proto.Order.Producets.num)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// Order
|
|
|
|
// int64 id = 1;
|
|
inline void Order::clear_id() {
|
|
id_ = int64_t{0};
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 Order::_internal_id() const {
|
|
return id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 Order::id() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.id)
|
|
return _internal_id();
|
|
}
|
|
inline void Order::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
|
|
id_ = value;
|
|
}
|
|
inline void Order::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
_internal_set_id(value);
|
|
// @@protoc_insertion_point(field_set:proto.Order.id)
|
|
}
|
|
|
|
// string no = 2;
|
|
inline void Order::clear_no() {
|
|
no_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Order::no() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.no)
|
|
return _internal_no();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void Order::set_no(ArgT0&& arg0, ArgT... args) {
|
|
|
|
no_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.Order.no)
|
|
}
|
|
inline std::string* Order::mutable_no() {
|
|
std::string* _s = _internal_mutable_no();
|
|
// @@protoc_insertion_point(field_mutable:proto.Order.no)
|
|
return _s;
|
|
}
|
|
inline const std::string& Order::_internal_no() const {
|
|
return no_.Get();
|
|
}
|
|
inline void Order::_internal_set_no(const std::string& value) {
|
|
|
|
no_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::_internal_mutable_no() {
|
|
|
|
return no_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::release_no() {
|
|
// @@protoc_insertion_point(field_release:proto.Order.no)
|
|
return no_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void Order::set_allocated_no(std::string* no) {
|
|
if (no != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
no_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), no,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.Order.no)
|
|
}
|
|
|
|
// string tel = 3;
|
|
inline void Order::clear_tel() {
|
|
tel_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Order::tel() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.tel)
|
|
return _internal_tel();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void Order::set_tel(ArgT0&& arg0, ArgT... args) {
|
|
|
|
tel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.Order.tel)
|
|
}
|
|
inline std::string* Order::mutable_tel() {
|
|
std::string* _s = _internal_mutable_tel();
|
|
// @@protoc_insertion_point(field_mutable:proto.Order.tel)
|
|
return _s;
|
|
}
|
|
inline const std::string& Order::_internal_tel() const {
|
|
return tel_.Get();
|
|
}
|
|
inline void Order::_internal_set_tel(const std::string& value) {
|
|
|
|
tel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::_internal_mutable_tel() {
|
|
|
|
return tel_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::release_tel() {
|
|
// @@protoc_insertion_point(field_release:proto.Order.tel)
|
|
return tel_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void Order::set_allocated_tel(std::string* tel) {
|
|
if (tel != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
tel_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tel,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.Order.tel)
|
|
}
|
|
|
|
// string address = 4;
|
|
inline void Order::clear_address() {
|
|
address_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Order::address() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.address)
|
|
return _internal_address();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void Order::set_address(ArgT0&& arg0, ArgT... args) {
|
|
|
|
address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.Order.address)
|
|
}
|
|
inline std::string* Order::mutable_address() {
|
|
std::string* _s = _internal_mutable_address();
|
|
// @@protoc_insertion_point(field_mutable:proto.Order.address)
|
|
return _s;
|
|
}
|
|
inline const std::string& Order::_internal_address() const {
|
|
return address_.Get();
|
|
}
|
|
inline void Order::_internal_set_address(const std::string& value) {
|
|
|
|
address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::_internal_mutable_address() {
|
|
|
|
return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::release_address() {
|
|
// @@protoc_insertion_point(field_release:proto.Order.address)
|
|
return address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void Order::set_allocated_address(std::string* address) {
|
|
if (address != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.Order.address)
|
|
}
|
|
|
|
// string addTime = 5;
|
|
inline void Order::clear_addtime() {
|
|
addtime_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Order::addtime() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.addTime)
|
|
return _internal_addtime();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void Order::set_addtime(ArgT0&& arg0, ArgT... args) {
|
|
|
|
addtime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.Order.addTime)
|
|
}
|
|
inline std::string* Order::mutable_addtime() {
|
|
std::string* _s = _internal_mutable_addtime();
|
|
// @@protoc_insertion_point(field_mutable:proto.Order.addTime)
|
|
return _s;
|
|
}
|
|
inline const std::string& Order::_internal_addtime() const {
|
|
return addtime_.Get();
|
|
}
|
|
inline void Order::_internal_set_addtime(const std::string& value) {
|
|
|
|
addtime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::_internal_mutable_addtime() {
|
|
|
|
return addtime_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Order::release_addtime() {
|
|
// @@protoc_insertion_point(field_release:proto.Order.addTime)
|
|
return addtime_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void Order::set_allocated_addtime(std::string* addtime) {
|
|
if (addtime != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
addtime_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), addtime,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.Order.addTime)
|
|
}
|
|
|
|
// .proto.OrderStatus status = 6;
|
|
inline void Order::clear_status() {
|
|
status_ = 0;
|
|
}
|
|
inline ::proto::OrderStatus Order::_internal_status() const {
|
|
return static_cast< ::proto::OrderStatus >(status_);
|
|
}
|
|
inline ::proto::OrderStatus Order::status() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.status)
|
|
return _internal_status();
|
|
}
|
|
inline void Order::_internal_set_status(::proto::OrderStatus value) {
|
|
|
|
status_ = value;
|
|
}
|
|
inline void Order::set_status(::proto::OrderStatus value) {
|
|
_internal_set_status(value);
|
|
// @@protoc_insertion_point(field_set:proto.Order.status)
|
|
}
|
|
|
|
// .proto.Order.Producets producets = 7;
|
|
inline bool Order::_internal_has_producets() const {
|
|
return this != internal_default_instance() && producets_ != nullptr;
|
|
}
|
|
inline bool Order::has_producets() const {
|
|
return _internal_has_producets();
|
|
}
|
|
inline void Order::clear_producets() {
|
|
if (GetArenaForAllocation() == nullptr && producets_ != nullptr) {
|
|
delete producets_;
|
|
}
|
|
producets_ = nullptr;
|
|
}
|
|
inline const ::proto::Order_Producets& Order::_internal_producets() const {
|
|
const ::proto::Order_Producets* p = producets_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::proto::Order_Producets&>(
|
|
::proto::_Order_Producets_default_instance_);
|
|
}
|
|
inline const ::proto::Order_Producets& Order::producets() const {
|
|
// @@protoc_insertion_point(field_get:proto.Order.producets)
|
|
return _internal_producets();
|
|
}
|
|
inline void Order::unsafe_arena_set_allocated_producets(
|
|
::proto::Order_Producets* producets) {
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(producets_);
|
|
}
|
|
producets_ = producets;
|
|
if (producets) {
|
|
|
|
} else {
|
|
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Order.producets)
|
|
}
|
|
inline ::proto::Order_Producets* Order::release_producets() {
|
|
|
|
::proto::Order_Producets* temp = producets_;
|
|
producets_ = nullptr;
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
return temp;
|
|
}
|
|
inline ::proto::Order_Producets* Order::unsafe_arena_release_producets() {
|
|
// @@protoc_insertion_point(field_release:proto.Order.producets)
|
|
|
|
::proto::Order_Producets* temp = producets_;
|
|
producets_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::proto::Order_Producets* Order::_internal_mutable_producets() {
|
|
|
|
if (producets_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::proto::Order_Producets>(GetArenaForAllocation());
|
|
producets_ = p;
|
|
}
|
|
return producets_;
|
|
}
|
|
inline ::proto::Order_Producets* Order::mutable_producets() {
|
|
::proto::Order_Producets* _msg = _internal_mutable_producets();
|
|
// @@protoc_insertion_point(field_mutable:proto.Order.producets)
|
|
return _msg;
|
|
}
|
|
inline void Order::set_allocated_producets(::proto::Order_Producets* producets) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
if (message_arena == nullptr) {
|
|
delete producets_;
|
|
}
|
|
if (producets) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Order_Producets>::GetOwningArena(producets);
|
|
if (message_arena != submessage_arena) {
|
|
producets = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, producets, submessage_arena);
|
|
}
|
|
|
|
} else {
|
|
|
|
}
|
|
producets_ = producets;
|
|
// @@protoc_insertion_point(field_set_allocated:proto.Order.producets)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// OrderRequest
|
|
|
|
// int32 activityType = 1;
|
|
inline void OrderRequest::clear_activitytype() {
|
|
activitytype_ = 0;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int32 OrderRequest::_internal_activitytype() const {
|
|
return activitytype_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int32 OrderRequest::activitytype() const {
|
|
// @@protoc_insertion_point(field_get:proto.OrderRequest.activityType)
|
|
return _internal_activitytype();
|
|
}
|
|
inline void OrderRequest::_internal_set_activitytype(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
|
activitytype_ = value;
|
|
}
|
|
inline void OrderRequest::set_activitytype(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
_internal_set_activitytype(value);
|
|
// @@protoc_insertion_point(field_set:proto.OrderRequest.activityType)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// OrderResp
|
|
|
|
// int32 discountAmount = 1;
|
|
inline void OrderResp::clear_discountamount() {
|
|
discountamount_ = 0;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int32 OrderResp::_internal_discountamount() const {
|
|
return discountamount_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int32 OrderResp::discountamount() const {
|
|
// @@protoc_insertion_point(field_get:proto.OrderResp.discountAmount)
|
|
return _internal_discountamount();
|
|
}
|
|
inline void OrderResp::_internal_set_discountamount(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
|
discountamount_ = value;
|
|
}
|
|
inline void OrderResp::set_discountamount(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
_internal_set_discountamount(value);
|
|
// @@protoc_insertion_point(field_set:proto.OrderResp.discountAmount)
|
|
}
|
|
|
|
// string code = 2;
|
|
inline void OrderResp::clear_code() {
|
|
code_.ClearToEmpty();
|
|
}
|
|
inline const std::string& OrderResp::code() const {
|
|
// @@protoc_insertion_point(field_get:proto.OrderResp.code)
|
|
return _internal_code();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void OrderResp::set_code(ArgT0&& arg0, ArgT... args) {
|
|
|
|
code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.OrderResp.code)
|
|
}
|
|
inline std::string* OrderResp::mutable_code() {
|
|
std::string* _s = _internal_mutable_code();
|
|
// @@protoc_insertion_point(field_mutable:proto.OrderResp.code)
|
|
return _s;
|
|
}
|
|
inline const std::string& OrderResp::_internal_code() const {
|
|
return code_.Get();
|
|
}
|
|
inline void OrderResp::_internal_set_code(const std::string& value) {
|
|
|
|
code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* OrderResp::_internal_mutable_code() {
|
|
|
|
return code_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* OrderResp::release_code() {
|
|
// @@protoc_insertion_point(field_release:proto.OrderResp.code)
|
|
return code_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void OrderResp::set_allocated_code(std::string* code) {
|
|
if (code != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
code_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), code,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.OrderResp.code)
|
|
}
|
|
|
|
// string msg = 3;
|
|
inline void OrderResp::clear_msg() {
|
|
msg_.ClearToEmpty();
|
|
}
|
|
inline const std::string& OrderResp::msg() const {
|
|
// @@protoc_insertion_point(field_get:proto.OrderResp.msg)
|
|
return _internal_msg();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void OrderResp::set_msg(ArgT0&& arg0, ArgT... args) {
|
|
|
|
msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:proto.OrderResp.msg)
|
|
}
|
|
inline std::string* OrderResp::mutable_msg() {
|
|
std::string* _s = _internal_mutable_msg();
|
|
// @@protoc_insertion_point(field_mutable:proto.OrderResp.msg)
|
|
return _s;
|
|
}
|
|
inline const std::string& OrderResp::_internal_msg() const {
|
|
return msg_.Get();
|
|
}
|
|
inline void OrderResp::_internal_set_msg(const std::string& value) {
|
|
|
|
msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* OrderResp::_internal_mutable_msg() {
|
|
|
|
return msg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* OrderResp::release_msg() {
|
|
// @@protoc_insertion_point(field_release:proto.OrderResp.msg)
|
|
return msg_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void OrderResp::set_allocated_msg(std::string* msg) {
|
|
if (msg != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
msg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:proto.OrderResp.msg)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace proto
|
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
|
|
template <> struct is_proto_enum< ::proto::OrderStatus> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::proto::OrderStatus>() {
|
|
return ::proto::OrderStatus_descriptor();
|
|
}
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_test_2eproto
|