diff --git a/proto/CertificateInfoV2.proto b/proto/CertificateInfoV2.proto deleted file mode 100644 index 2c360e6..0000000 --- a/proto/CertificateInfoV2.proto +++ /dev/null @@ -1,24 +0,0 @@ -package Diadoc.Api.Proto; - -message CertificateInfoV2 { - required string Thumbprint = 1; - required CertificateType Type = 2; - optional sfixed64 ValidFrom = 3; - optional sfixed64 ValidTo = 4; - optional sfixed64 PrivateKeyValidFrom = 5; - optional sfixed64 PrivateKeyValidTo = 6; - optional string OrganizationName = 7; - optional string Inn = 8; - optional string UserFirstName = 9; - optional string UserMiddleName = 10; - optional string UserLastName = 11; - optional string UserShortName = 12; - optional bool IsDefault = 13; -} - -enum CertificateType { - UnknownCertificateType = 0; - TokenCertificateType = 1; - DssCertificateType = 2; - KonturCertificateType = 3; -} diff --git a/proto/CertificateList.proto b/proto/CertificateList.proto deleted file mode 100644 index 33fb29b..0000000 --- a/proto/CertificateList.proto +++ /dev/null @@ -1,6 +0,0 @@ -import "CertificateInfoV2.proto"; -package Diadoc.Api.Proto; - -message CertificateList { - repeated CertificateInfoV2 Certificates = 1; -} \ No newline at end of file diff --git a/proto/Docflow/DocumentInfo.proto b/proto/Docflow/DocumentInfo.proto index bdab5b9..5df4f63 100644 --- a/proto/Docflow/DocumentInfo.proto +++ b/proto/Docflow/DocumentInfo.proto @@ -75,10 +75,10 @@ message ContractDocumentInfo message SupplementaryAgreementDocumentInfo { - optional string Total = 1; - optional string ContractType = 2; - optional string ContractNumber = 3; - optional string ContractDate = 4; + optional string ContractType = 1; + required DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + required DocumentDateAndNumber DocumentDateAndNumber = 3; + optional string Total = 4; } message UniversalTransferDocumentInfo diff --git a/proto/Docflow/DocumentInfoV3.proto b/proto/Docflow/DocumentInfoV3.proto index 8db049d..2cc3be2 100644 --- a/proto/Docflow/DocumentInfoV3.proto +++ b/proto/Docflow/DocumentInfoV3.proto @@ -30,6 +30,7 @@ message DocumentInfoV3 optional DocumentDraftInfo DraftInfo = 16; optional DocumentTemplateInfo TemplateInfo = 17; optional Documents.Origin Origin = 18; + optional string EditingSettingId = 19 [default = ""]; } message DocumentParticipants diff --git a/proto/Dss/DssSign.proto b/proto/Dss/DssSign.proto index 953d369..835b42f 100644 --- a/proto/Dss/DssSign.proto +++ b/proto/Dss/DssSign.proto @@ -13,6 +13,7 @@ message DssSignFile optional string FileName = 2; } + enum DssConfirmType { ConfirmTypeUnknown = -1; None = 0; @@ -27,28 +28,27 @@ enum DssOperator { Kontur = 2; } -message DssSignResult -{ +message DssSignResult { optional DssOperationStatus OperationStatus = 1 [default = Unknown]; repeated DssFileSigningResult FileSigningResults = 2; optional DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; optional DssOperator Operator = 4 [default = OperatorUnknown]; optional string PhoneLastNumbers = 5; } - + message DssFileSigningResult { optional DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; optional bytes Signature = 2; } - + enum DssFileSigningStatus { UnknownSigningStatus = 0; SigningCompleted = 1; SigningError = 2; } - + enum DssOperationStatus { Unknown = 0; diff --git a/src/DiadocApi.cpp b/src/DiadocApi.cpp index 422baa9..ccb1a3c 100644 --- a/src/DiadocApi.cpp +++ b/src/DiadocApi.cpp @@ -1409,12 +1409,12 @@ Diadoc::Api::Proto::UserV2 DiadocApi::UpdateMyUser(Diadoc::Api::Proto::Users::Us return FromProtoBytes(PerformHttpRequest(L"/UpdateMyUser", ToProtoBytes(userToUpdate), POST)); } -Diadoc::Api::Proto::CertificateList DiadocApi::GetMyCertificates(const std::wstring& boxId) +Diadoc::Api::Proto::Certificates::CertificateList DiadocApi::GetMyCertificates(const std::wstring& boxId) { WppTraceDebugOut("GetMyCertificates..."); std::wstringstream buf; buf << L"/GetMyCertificates?boxId=" << StringHelper::CanonicalizeUrl(boxId); - return FromProtoBytes(PerformHttpRequest(buf.str(), GET)); + return FromProtoBytes(PerformHttpRequest(buf.str(), GET)); } Diadoc::Api::Proto::Departments::Department DiadocApi::GetDepartmentByFullId(const std::wstring& boxId, const std::wstring& departmentId) diff --git a/src/DiadocApi.h b/src/DiadocApi.h index 2057da3..e325f30 100644 --- a/src/DiadocApi.h +++ b/src/DiadocApi.h @@ -54,7 +54,7 @@ #include "protos\AcquireCounteragent.pb.h" #include "protos\CustomPrintFormDetection.pb.h" #include "protos\Registration\RegistrationRequest.pb.h" -#include "protos\CertificateList.pb.h" +#include "protos\Certificates\CertificateList.pb.h" #include "DocumentFilter.h" #include "HttpSession.h" #include "TaskResult.h" @@ -271,7 +271,7 @@ class DiadocApi Diadoc::Api::Proto::User GetMyUser(); Diadoc::Api::Proto::UserV2 GetMyUserV2(); Diadoc::Api::Proto::UserV2 UpdateMyUser(Diadoc::Api::Proto::Users::UserToUpdate& userToUpdate); - Diadoc::Api::Proto::CertificateList GetMyCertificates(const std::wstring& boxId); + Diadoc::Api::Proto::Certificates::CertificateList GetMyCertificates(const std::wstring& boxId); Diadoc::Api::Proto::Departments::Department GetDepartmentByFullId(const std::wstring& boxId, const std::wstring& departmentId); Diadoc::Api::Proto::Departments::DepartmentList GetDepartments(const std::wstring& boxId, int* page = NULL, int* count = NULL); diff --git a/src/protos/CertificateInfoV2.pb.cc b/src/protos/CertificateInfoV2.pb.cc deleted file mode 100644 index 1fecd11..0000000 --- a/src/protos/CertificateInfoV2.pb.cc +++ /dev/null @@ -1,993 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CertificateInfoV2.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "CertificateInfoV2.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace Diadoc { -namespace Api { -namespace Proto { - -namespace { - -const ::google::protobuf::Descriptor* CertificateInfoV2_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CertificateInfoV2_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* CertificateType_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_CertificateInfoV2_2eproto() { - protobuf_AddDesc_CertificateInfoV2_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "CertificateInfoV2.proto"); - GOOGLE_CHECK(file != NULL); - CertificateInfoV2_descriptor_ = file->message_type(0); - static const int CertificateInfoV2_offsets_[13] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, thumbprint_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, validfrom_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, validto_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, privatekeyvalidfrom_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, privatekeyvalidto_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, organizationname_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, inn_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, userfirstname_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, usermiddlename_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, userlastname_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, usershortname_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, isdefault_), - }; - CertificateInfoV2_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - CertificateInfoV2_descriptor_, - CertificateInfoV2::default_instance_, - CertificateInfoV2_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateInfoV2, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(CertificateInfoV2)); - CertificateType_descriptor_ = file->enum_type(0); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_CertificateInfoV2_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CertificateInfoV2_descriptor_, &CertificateInfoV2::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_CertificateInfoV2_2eproto() { - delete CertificateInfoV2::default_instance_; - delete CertificateInfoV2_reflection_; -} - -void protobuf_AddDesc_CertificateInfoV2_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\027CertificateInfoV2.proto\022\020Diadoc.Api.Pr" - "oto\"\312\002\n\021CertificateInfoV2\022\022\n\nThumbprint\030" - "\001 \002(\t\022/\n\004Type\030\002 \002(\0162!.Diadoc.Api.Proto.C" - "ertificateType\022\021\n\tValidFrom\030\003 \001(\020\022\017\n\007Val" - "idTo\030\004 \001(\020\022\033\n\023PrivateKeyValidFrom\030\005 \001(\020\022" - "\031\n\021PrivateKeyValidTo\030\006 \001(\020\022\030\n\020Organizati" - "onName\030\007 \001(\t\022\013\n\003Inn\030\010 \001(\t\022\025\n\rUserFirstNa" - "me\030\t \001(\t\022\026\n\016UserMiddleName\030\n \001(\t\022\024\n\014User" - "LastName\030\013 \001(\t\022\025\n\rUserShortName\030\014 \001(\t\022\021\n" - "\tIsDefault\030\r \001(\010*z\n\017CertificateType\022\032\n\026U" - "nknownCertificateType\020\000\022\030\n\024TokenCertific" - "ateType\020\001\022\026\n\022DssCertificateType\020\002\022\031\n\025Kon" - "turCertificateType\020\003", 500); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "CertificateInfoV2.proto", &protobuf_RegisterTypes); - CertificateInfoV2::default_instance_ = new CertificateInfoV2(); - CertificateInfoV2::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_CertificateInfoV2_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_CertificateInfoV2_2eproto { - StaticDescriptorInitializer_CertificateInfoV2_2eproto() { - protobuf_AddDesc_CertificateInfoV2_2eproto(); - } -} static_descriptor_initializer_CertificateInfoV2_2eproto_; -const ::google::protobuf::EnumDescriptor* CertificateType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return CertificateType_descriptor_; -} -bool CertificateType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -#ifndef _MSC_VER -const int CertificateInfoV2::kThumbprintFieldNumber; -const int CertificateInfoV2::kTypeFieldNumber; -const int CertificateInfoV2::kValidFromFieldNumber; -const int CertificateInfoV2::kValidToFieldNumber; -const int CertificateInfoV2::kPrivateKeyValidFromFieldNumber; -const int CertificateInfoV2::kPrivateKeyValidToFieldNumber; -const int CertificateInfoV2::kOrganizationNameFieldNumber; -const int CertificateInfoV2::kInnFieldNumber; -const int CertificateInfoV2::kUserFirstNameFieldNumber; -const int CertificateInfoV2::kUserMiddleNameFieldNumber; -const int CertificateInfoV2::kUserLastNameFieldNumber; -const int CertificateInfoV2::kUserShortNameFieldNumber; -const int CertificateInfoV2::kIsDefaultFieldNumber; -#endif // !_MSC_VER - -CertificateInfoV2::CertificateInfoV2() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:Diadoc.Api.Proto.CertificateInfoV2) -} - -void CertificateInfoV2::InitAsDefaultInstance() { -} - -CertificateInfoV2::CertificateInfoV2(const CertificateInfoV2& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:Diadoc.Api.Proto.CertificateInfoV2) -} - -void CertificateInfoV2::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - thumbprint_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - validfrom_ = GOOGLE_LONGLONG(0); - validto_ = GOOGLE_LONGLONG(0); - privatekeyvalidfrom_ = GOOGLE_LONGLONG(0); - privatekeyvalidto_ = GOOGLE_LONGLONG(0); - organizationname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - inn_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - userfirstname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - usermiddlename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - userlastname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - usershortname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - isdefault_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CertificateInfoV2::~CertificateInfoV2() { - // @@protoc_insertion_point(destructor:Diadoc.Api.Proto.CertificateInfoV2) - SharedDtor(); -} - -void CertificateInfoV2::SharedDtor() { - if (thumbprint_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete thumbprint_; - } - if (organizationname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete organizationname_; - } - if (inn_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete inn_; - } - if (userfirstname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete userfirstname_; - } - if (usermiddlename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete usermiddlename_; - } - if (userlastname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete userlastname_; - } - if (usershortname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete usershortname_; - } - if (this != default_instance_) { - } -} - -void CertificateInfoV2::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CertificateInfoV2::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CertificateInfoV2_descriptor_; -} - -const CertificateInfoV2& CertificateInfoV2::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_CertificateInfoV2_2eproto(); - return *default_instance_; -} - -CertificateInfoV2* CertificateInfoV2::default_instance_ = NULL; - -CertificateInfoV2* CertificateInfoV2::New() const { - return new CertificateInfoV2; -} - -void CertificateInfoV2::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 255) { - ZR_(validfrom_, privatekeyvalidto_); - if (has_thumbprint()) { - if (thumbprint_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - thumbprint_->clear(); - } - } - type_ = 0; - if (has_organizationname()) { - if (organizationname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - organizationname_->clear(); - } - } - if (has_inn()) { - if (inn_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inn_->clear(); - } - } - } - if (_has_bits_[8 / 32] & 7936) { - if (has_userfirstname()) { - if (userfirstname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userfirstname_->clear(); - } - } - if (has_usermiddlename()) { - if (usermiddlename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usermiddlename_->clear(); - } - } - if (has_userlastname()) { - if (userlastname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userlastname_->clear(); - } - } - if (has_usershortname()) { - if (usershortname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usershortname_->clear(); - } - } - isdefault_ = false; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CertificateInfoV2::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:Diadoc.Api.Proto.CertificateInfoV2) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string Thumbprint = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_thumbprint())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->thumbprint().data(), this->thumbprint().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "thumbprint"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_Type; - break; - } - - // required .Diadoc.Api.Proto.CertificateType Type = 2; - case 2: { - if (tag == 16) { - parse_Type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::Diadoc::Api::Proto::CertificateType_IsValid(value)) { - set_type(static_cast< ::Diadoc::Api::Proto::CertificateType >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(25)) goto parse_ValidFrom; - break; - } - - // optional sfixed64 ValidFrom = 3; - case 3: { - if (tag == 25) { - parse_ValidFrom: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( - input, &validfrom_))); - set_has_validfrom(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(33)) goto parse_ValidTo; - break; - } - - // optional sfixed64 ValidTo = 4; - case 4: { - if (tag == 33) { - parse_ValidTo: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( - input, &validto_))); - set_has_validto(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(41)) goto parse_PrivateKeyValidFrom; - break; - } - - // optional sfixed64 PrivateKeyValidFrom = 5; - case 5: { - if (tag == 41) { - parse_PrivateKeyValidFrom: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( - input, &privatekeyvalidfrom_))); - set_has_privatekeyvalidfrom(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(49)) goto parse_PrivateKeyValidTo; - break; - } - - // optional sfixed64 PrivateKeyValidTo = 6; - case 6: { - if (tag == 49) { - parse_PrivateKeyValidTo: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( - input, &privatekeyvalidto_))); - set_has_privatekeyvalidto(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_OrganizationName; - break; - } - - // optional string OrganizationName = 7; - case 7: { - if (tag == 58) { - parse_OrganizationName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_organizationname())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->organizationname().data(), this->organizationname().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "organizationname"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_Inn; - break; - } - - // optional string Inn = 8; - case 8: { - if (tag == 66) { - parse_Inn: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_inn())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inn().data(), this->inn().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "inn"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_UserFirstName; - break; - } - - // optional string UserFirstName = 9; - case 9: { - if (tag == 74) { - parse_UserFirstName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_userfirstname())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->userfirstname().data(), this->userfirstname().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "userfirstname"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(82)) goto parse_UserMiddleName; - break; - } - - // optional string UserMiddleName = 10; - case 10: { - if (tag == 82) { - parse_UserMiddleName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_usermiddlename())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->usermiddlename().data(), this->usermiddlename().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "usermiddlename"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_UserLastName; - break; - } - - // optional string UserLastName = 11; - case 11: { - if (tag == 90) { - parse_UserLastName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_userlastname())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->userlastname().data(), this->userlastname().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "userlastname"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(98)) goto parse_UserShortName; - break; - } - - // optional string UserShortName = 12; - case 12: { - if (tag == 98) { - parse_UserShortName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_usershortname())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->usershortname().data(), this->usershortname().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "usershortname"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(104)) goto parse_IsDefault; - break; - } - - // optional bool IsDefault = 13; - case 13: { - if (tag == 104) { - parse_IsDefault: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isdefault_))); - set_has_isdefault(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:Diadoc.Api.Proto.CertificateInfoV2) - return true; -failure: - // @@protoc_insertion_point(parse_failure:Diadoc.Api.Proto.CertificateInfoV2) - return false; -#undef DO_ -} - -void CertificateInfoV2::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:Diadoc.Api.Proto.CertificateInfoV2) - // required string Thumbprint = 1; - if (has_thumbprint()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->thumbprint().data(), this->thumbprint().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "thumbprint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->thumbprint(), output); - } - - // required .Diadoc.Api.Proto.CertificateType Type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // optional sfixed64 ValidFrom = 3; - if (has_validfrom()) { - ::google::protobuf::internal::WireFormatLite::WriteSFixed64(3, this->validfrom(), output); - } - - // optional sfixed64 ValidTo = 4; - if (has_validto()) { - ::google::protobuf::internal::WireFormatLite::WriteSFixed64(4, this->validto(), output); - } - - // optional sfixed64 PrivateKeyValidFrom = 5; - if (has_privatekeyvalidfrom()) { - ::google::protobuf::internal::WireFormatLite::WriteSFixed64(5, this->privatekeyvalidfrom(), output); - } - - // optional sfixed64 PrivateKeyValidTo = 6; - if (has_privatekeyvalidto()) { - ::google::protobuf::internal::WireFormatLite::WriteSFixed64(6, this->privatekeyvalidto(), output); - } - - // optional string OrganizationName = 7; - if (has_organizationname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->organizationname().data(), this->organizationname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "organizationname"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->organizationname(), output); - } - - // optional string Inn = 8; - if (has_inn()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inn().data(), this->inn().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "inn"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->inn(), output); - } - - // optional string UserFirstName = 9; - if (has_userfirstname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->userfirstname().data(), this->userfirstname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "userfirstname"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->userfirstname(), output); - } - - // optional string UserMiddleName = 10; - if (has_usermiddlename()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->usermiddlename().data(), this->usermiddlename().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "usermiddlename"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->usermiddlename(), output); - } - - // optional string UserLastName = 11; - if (has_userlastname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->userlastname().data(), this->userlastname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "userlastname"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->userlastname(), output); - } - - // optional string UserShortName = 12; - if (has_usershortname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->usershortname().data(), this->usershortname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "usershortname"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 12, this->usershortname(), output); - } - - // optional bool IsDefault = 13; - if (has_isdefault()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->isdefault(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:Diadoc.Api.Proto.CertificateInfoV2) -} - -::google::protobuf::uint8* CertificateInfoV2::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:Diadoc.Api.Proto.CertificateInfoV2) - // required string Thumbprint = 1; - if (has_thumbprint()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->thumbprint().data(), this->thumbprint().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "thumbprint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->thumbprint(), target); - } - - // required .Diadoc.Api.Proto.CertificateType Type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // optional sfixed64 ValidFrom = 3; - if (has_validfrom()) { - target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(3, this->validfrom(), target); - } - - // optional sfixed64 ValidTo = 4; - if (has_validto()) { - target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(4, this->validto(), target); - } - - // optional sfixed64 PrivateKeyValidFrom = 5; - if (has_privatekeyvalidfrom()) { - target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(5, this->privatekeyvalidfrom(), target); - } - - // optional sfixed64 PrivateKeyValidTo = 6; - if (has_privatekeyvalidto()) { - target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(6, this->privatekeyvalidto(), target); - } - - // optional string OrganizationName = 7; - if (has_organizationname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->organizationname().data(), this->organizationname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "organizationname"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->organizationname(), target); - } - - // optional string Inn = 8; - if (has_inn()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->inn().data(), this->inn().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "inn"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->inn(), target); - } - - // optional string UserFirstName = 9; - if (has_userfirstname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->userfirstname().data(), this->userfirstname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "userfirstname"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->userfirstname(), target); - } - - // optional string UserMiddleName = 10; - if (has_usermiddlename()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->usermiddlename().data(), this->usermiddlename().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "usermiddlename"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->usermiddlename(), target); - } - - // optional string UserLastName = 11; - if (has_userlastname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->userlastname().data(), this->userlastname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "userlastname"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->userlastname(), target); - } - - // optional string UserShortName = 12; - if (has_usershortname()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->usershortname().data(), this->usershortname().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "usershortname"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 12, this->usershortname(), target); - } - - // optional bool IsDefault = 13; - if (has_isdefault()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->isdefault(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:Diadoc.Api.Proto.CertificateInfoV2) - return target; -} - -int CertificateInfoV2::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string Thumbprint = 1; - if (has_thumbprint()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->thumbprint()); - } - - // required .Diadoc.Api.Proto.CertificateType Type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional sfixed64 ValidFrom = 3; - if (has_validfrom()) { - total_size += 1 + 8; - } - - // optional sfixed64 ValidTo = 4; - if (has_validto()) { - total_size += 1 + 8; - } - - // optional sfixed64 PrivateKeyValidFrom = 5; - if (has_privatekeyvalidfrom()) { - total_size += 1 + 8; - } - - // optional sfixed64 PrivateKeyValidTo = 6; - if (has_privatekeyvalidto()) { - total_size += 1 + 8; - } - - // optional string OrganizationName = 7; - if (has_organizationname()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->organizationname()); - } - - // optional string Inn = 8; - if (has_inn()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->inn()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional string UserFirstName = 9; - if (has_userfirstname()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->userfirstname()); - } - - // optional string UserMiddleName = 10; - if (has_usermiddlename()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->usermiddlename()); - } - - // optional string UserLastName = 11; - if (has_userlastname()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->userlastname()); - } - - // optional string UserShortName = 12; - if (has_usershortname()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->usershortname()); - } - - // optional bool IsDefault = 13; - if (has_isdefault()) { - total_size += 1 + 1; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CertificateInfoV2::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CertificateInfoV2* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CertificateInfoV2::MergeFrom(const CertificateInfoV2& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_thumbprint()) { - set_thumbprint(from.thumbprint()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_validfrom()) { - set_validfrom(from.validfrom()); - } - if (from.has_validto()) { - set_validto(from.validto()); - } - if (from.has_privatekeyvalidfrom()) { - set_privatekeyvalidfrom(from.privatekeyvalidfrom()); - } - if (from.has_privatekeyvalidto()) { - set_privatekeyvalidto(from.privatekeyvalidto()); - } - if (from.has_organizationname()) { - set_organizationname(from.organizationname()); - } - if (from.has_inn()) { - set_inn(from.inn()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_userfirstname()) { - set_userfirstname(from.userfirstname()); - } - if (from.has_usermiddlename()) { - set_usermiddlename(from.usermiddlename()); - } - if (from.has_userlastname()) { - set_userlastname(from.userlastname()); - } - if (from.has_usershortname()) { - set_usershortname(from.usershortname()); - } - if (from.has_isdefault()) { - set_isdefault(from.isdefault()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CertificateInfoV2::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CertificateInfoV2::CopyFrom(const CertificateInfoV2& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CertificateInfoV2::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void CertificateInfoV2::Swap(CertificateInfoV2* other) { - if (other != this) { - std::swap(thumbprint_, other->thumbprint_); - std::swap(type_, other->type_); - std::swap(validfrom_, other->validfrom_); - std::swap(validto_, other->validto_); - std::swap(privatekeyvalidfrom_, other->privatekeyvalidfrom_); - std::swap(privatekeyvalidto_, other->privatekeyvalidto_); - std::swap(organizationname_, other->organizationname_); - std::swap(inn_, other->inn_); - std::swap(userfirstname_, other->userfirstname_); - std::swap(usermiddlename_, other->usermiddlename_); - std::swap(userlastname_, other->userlastname_); - std::swap(usershortname_, other->usershortname_); - std::swap(isdefault_, other->isdefault_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata CertificateInfoV2::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CertificateInfoV2_descriptor_; - metadata.reflection = CertificateInfoV2_reflection_; - return metadata; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Proto -} // namespace Api -} // namespace Diadoc - -// @@protoc_insertion_point(global_scope) diff --git a/src/protos/CertificateInfoV2.pb.h b/src/protos/CertificateInfoV2.pb.h deleted file mode 100644 index 0890e2a..0000000 --- a/src/protos/CertificateInfoV2.pb.h +++ /dev/null @@ -1,1003 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CertificateInfoV2.proto - -#ifndef PROTOBUF_CertificateInfoV2_2eproto__INCLUDED -#define PROTOBUF_CertificateInfoV2_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 2006000 -#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 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace Diadoc { -namespace Api { -namespace Proto { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_CertificateInfoV2_2eproto(); -void protobuf_AssignDesc_CertificateInfoV2_2eproto(); -void protobuf_ShutdownFile_CertificateInfoV2_2eproto(); - -class CertificateInfoV2; - -enum CertificateType { - UnknownCertificateType = 0, - TokenCertificateType = 1, - DssCertificateType = 2, - KonturCertificateType = 3 -}; -bool CertificateType_IsValid(int value); -const CertificateType CertificateType_MIN = UnknownCertificateType; -const CertificateType CertificateType_MAX = KonturCertificateType; -const int CertificateType_ARRAYSIZE = CertificateType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* CertificateType_descriptor(); -inline const ::std::string& CertificateType_Name(CertificateType value) { - return ::google::protobuf::internal::NameOfEnum( - CertificateType_descriptor(), value); -} -inline bool CertificateType_Parse( - const ::std::string& name, CertificateType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CertificateType_descriptor(), name, value); -} -// =================================================================== - -class CertificateInfoV2 : public ::google::protobuf::Message { - public: - CertificateInfoV2(); - virtual ~CertificateInfoV2(); - - CertificateInfoV2(const CertificateInfoV2& from); - - inline CertificateInfoV2& operator=(const CertificateInfoV2& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CertificateInfoV2& default_instance(); - - void Swap(CertificateInfoV2* other); - - // implements Message ---------------------------------------------- - - CertificateInfoV2* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CertificateInfoV2& from); - void MergeFrom(const CertificateInfoV2& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required string Thumbprint = 1; - inline bool has_thumbprint() const; - inline void clear_thumbprint(); - static const int kThumbprintFieldNumber = 1; - inline const ::std::string& thumbprint() const; - inline void set_thumbprint(const ::std::string& value); - inline void set_thumbprint(const char* value); - inline void set_thumbprint(const char* value, size_t size); - inline ::std::string* mutable_thumbprint(); - inline ::std::string* release_thumbprint(); - inline void set_allocated_thumbprint(::std::string* thumbprint); - - // required .Diadoc.Api.Proto.CertificateType Type = 2; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 2; - inline ::Diadoc::Api::Proto::CertificateType type() const; - inline void set_type(::Diadoc::Api::Proto::CertificateType value); - - // optional sfixed64 ValidFrom = 3; - inline bool has_validfrom() const; - inline void clear_validfrom(); - static const int kValidFromFieldNumber = 3; - inline ::google::protobuf::int64 validfrom() const; - inline void set_validfrom(::google::protobuf::int64 value); - - // optional sfixed64 ValidTo = 4; - inline bool has_validto() const; - inline void clear_validto(); - static const int kValidToFieldNumber = 4; - inline ::google::protobuf::int64 validto() const; - inline void set_validto(::google::protobuf::int64 value); - - // optional sfixed64 PrivateKeyValidFrom = 5; - inline bool has_privatekeyvalidfrom() const; - inline void clear_privatekeyvalidfrom(); - static const int kPrivateKeyValidFromFieldNumber = 5; - inline ::google::protobuf::int64 privatekeyvalidfrom() const; - inline void set_privatekeyvalidfrom(::google::protobuf::int64 value); - - // optional sfixed64 PrivateKeyValidTo = 6; - inline bool has_privatekeyvalidto() const; - inline void clear_privatekeyvalidto(); - static const int kPrivateKeyValidToFieldNumber = 6; - inline ::google::protobuf::int64 privatekeyvalidto() const; - inline void set_privatekeyvalidto(::google::protobuf::int64 value); - - // optional string OrganizationName = 7; - inline bool has_organizationname() const; - inline void clear_organizationname(); - static const int kOrganizationNameFieldNumber = 7; - inline const ::std::string& organizationname() const; - inline void set_organizationname(const ::std::string& value); - inline void set_organizationname(const char* value); - inline void set_organizationname(const char* value, size_t size); - inline ::std::string* mutable_organizationname(); - inline ::std::string* release_organizationname(); - inline void set_allocated_organizationname(::std::string* organizationname); - - // optional string Inn = 8; - inline bool has_inn() const; - inline void clear_inn(); - static const int kInnFieldNumber = 8; - inline const ::std::string& inn() const; - inline void set_inn(const ::std::string& value); - inline void set_inn(const char* value); - inline void set_inn(const char* value, size_t size); - inline ::std::string* mutable_inn(); - inline ::std::string* release_inn(); - inline void set_allocated_inn(::std::string* inn); - - // optional string UserFirstName = 9; - inline bool has_userfirstname() const; - inline void clear_userfirstname(); - static const int kUserFirstNameFieldNumber = 9; - inline const ::std::string& userfirstname() const; - inline void set_userfirstname(const ::std::string& value); - inline void set_userfirstname(const char* value); - inline void set_userfirstname(const char* value, size_t size); - inline ::std::string* mutable_userfirstname(); - inline ::std::string* release_userfirstname(); - inline void set_allocated_userfirstname(::std::string* userfirstname); - - // optional string UserMiddleName = 10; - inline bool has_usermiddlename() const; - inline void clear_usermiddlename(); - static const int kUserMiddleNameFieldNumber = 10; - inline const ::std::string& usermiddlename() const; - inline void set_usermiddlename(const ::std::string& value); - inline void set_usermiddlename(const char* value); - inline void set_usermiddlename(const char* value, size_t size); - inline ::std::string* mutable_usermiddlename(); - inline ::std::string* release_usermiddlename(); - inline void set_allocated_usermiddlename(::std::string* usermiddlename); - - // optional string UserLastName = 11; - inline bool has_userlastname() const; - inline void clear_userlastname(); - static const int kUserLastNameFieldNumber = 11; - inline const ::std::string& userlastname() const; - inline void set_userlastname(const ::std::string& value); - inline void set_userlastname(const char* value); - inline void set_userlastname(const char* value, size_t size); - inline ::std::string* mutable_userlastname(); - inline ::std::string* release_userlastname(); - inline void set_allocated_userlastname(::std::string* userlastname); - - // optional string UserShortName = 12; - inline bool has_usershortname() const; - inline void clear_usershortname(); - static const int kUserShortNameFieldNumber = 12; - inline const ::std::string& usershortname() const; - inline void set_usershortname(const ::std::string& value); - inline void set_usershortname(const char* value); - inline void set_usershortname(const char* value, size_t size); - inline ::std::string* mutable_usershortname(); - inline ::std::string* release_usershortname(); - inline void set_allocated_usershortname(::std::string* usershortname); - - // optional bool IsDefault = 13; - inline bool has_isdefault() const; - inline void clear_isdefault(); - static const int kIsDefaultFieldNumber = 13; - inline bool isdefault() const; - inline void set_isdefault(bool value); - - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfoV2) - private: - inline void set_has_thumbprint(); - inline void clear_has_thumbprint(); - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_validfrom(); - inline void clear_has_validfrom(); - inline void set_has_validto(); - inline void clear_has_validto(); - inline void set_has_privatekeyvalidfrom(); - inline void clear_has_privatekeyvalidfrom(); - inline void set_has_privatekeyvalidto(); - inline void clear_has_privatekeyvalidto(); - inline void set_has_organizationname(); - inline void clear_has_organizationname(); - inline void set_has_inn(); - inline void clear_has_inn(); - inline void set_has_userfirstname(); - inline void clear_has_userfirstname(); - inline void set_has_usermiddlename(); - inline void clear_has_usermiddlename(); - inline void set_has_userlastname(); - inline void clear_has_userlastname(); - inline void set_has_usershortname(); - inline void clear_has_usershortname(); - inline void set_has_isdefault(); - inline void clear_has_isdefault(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* thumbprint_; - ::google::protobuf::int64 validfrom_; - ::google::protobuf::int64 validto_; - ::google::protobuf::int64 privatekeyvalidfrom_; - ::google::protobuf::int64 privatekeyvalidto_; - ::std::string* organizationname_; - int type_; - bool isdefault_; - ::std::string* inn_; - ::std::string* userfirstname_; - ::std::string* usermiddlename_; - ::std::string* userlastname_; - ::std::string* usershortname_; - friend void protobuf_AddDesc_CertificateInfoV2_2eproto(); - friend void protobuf_AssignDesc_CertificateInfoV2_2eproto(); - friend void protobuf_ShutdownFile_CertificateInfoV2_2eproto(); - - void InitAsDefaultInstance(); - static CertificateInfoV2* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// CertificateInfoV2 - -// required string Thumbprint = 1; -inline bool CertificateInfoV2::has_thumbprint() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CertificateInfoV2::set_has_thumbprint() { - _has_bits_[0] |= 0x00000001u; -} -inline void CertificateInfoV2::clear_has_thumbprint() { - _has_bits_[0] &= ~0x00000001u; -} -inline void CertificateInfoV2::clear_thumbprint() { - if (thumbprint_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - thumbprint_->clear(); - } - clear_has_thumbprint(); -} -inline const ::std::string& CertificateInfoV2::thumbprint() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.Thumbprint) - return *thumbprint_; -} -inline void CertificateInfoV2::set_thumbprint(const ::std::string& value) { - set_has_thumbprint(); - if (thumbprint_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - thumbprint_ = new ::std::string; - } - thumbprint_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.Thumbprint) -} -inline void CertificateInfoV2::set_thumbprint(const char* value) { - set_has_thumbprint(); - if (thumbprint_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - thumbprint_ = new ::std::string; - } - thumbprint_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.Thumbprint) -} -inline void CertificateInfoV2::set_thumbprint(const char* value, size_t size) { - set_has_thumbprint(); - if (thumbprint_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - thumbprint_ = new ::std::string; - } - thumbprint_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.Thumbprint) -} -inline ::std::string* CertificateInfoV2::mutable_thumbprint() { - set_has_thumbprint(); - if (thumbprint_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - thumbprint_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.Thumbprint) - return thumbprint_; -} -inline ::std::string* CertificateInfoV2::release_thumbprint() { - clear_has_thumbprint(); - if (thumbprint_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = thumbprint_; - thumbprint_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_thumbprint(::std::string* thumbprint) { - if (thumbprint_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete thumbprint_; - } - if (thumbprint) { - set_has_thumbprint(); - thumbprint_ = thumbprint; - } else { - clear_has_thumbprint(); - thumbprint_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.Thumbprint) -} - -// required .Diadoc.Api.Proto.CertificateType Type = 2; -inline bool CertificateInfoV2::has_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CertificateInfoV2::set_has_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void CertificateInfoV2::clear_has_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void CertificateInfoV2::clear_type() { - type_ = 0; - clear_has_type(); -} -inline ::Diadoc::Api::Proto::CertificateType CertificateInfoV2::type() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.Type) - return static_cast< ::Diadoc::Api::Proto::CertificateType >(type_); -} -inline void CertificateInfoV2::set_type(::Diadoc::Api::Proto::CertificateType value) { - assert(::Diadoc::Api::Proto::CertificateType_IsValid(value)); - set_has_type(); - type_ = value; - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.Type) -} - -// optional sfixed64 ValidFrom = 3; -inline bool CertificateInfoV2::has_validfrom() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CertificateInfoV2::set_has_validfrom() { - _has_bits_[0] |= 0x00000004u; -} -inline void CertificateInfoV2::clear_has_validfrom() { - _has_bits_[0] &= ~0x00000004u; -} -inline void CertificateInfoV2::clear_validfrom() { - validfrom_ = GOOGLE_LONGLONG(0); - clear_has_validfrom(); -} -inline ::google::protobuf::int64 CertificateInfoV2::validfrom() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.ValidFrom) - return validfrom_; -} -inline void CertificateInfoV2::set_validfrom(::google::protobuf::int64 value) { - set_has_validfrom(); - validfrom_ = value; - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.ValidFrom) -} - -// optional sfixed64 ValidTo = 4; -inline bool CertificateInfoV2::has_validto() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CertificateInfoV2::set_has_validto() { - _has_bits_[0] |= 0x00000008u; -} -inline void CertificateInfoV2::clear_has_validto() { - _has_bits_[0] &= ~0x00000008u; -} -inline void CertificateInfoV2::clear_validto() { - validto_ = GOOGLE_LONGLONG(0); - clear_has_validto(); -} -inline ::google::protobuf::int64 CertificateInfoV2::validto() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.ValidTo) - return validto_; -} -inline void CertificateInfoV2::set_validto(::google::protobuf::int64 value) { - set_has_validto(); - validto_ = value; - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.ValidTo) -} - -// optional sfixed64 PrivateKeyValidFrom = 5; -inline bool CertificateInfoV2::has_privatekeyvalidfrom() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CertificateInfoV2::set_has_privatekeyvalidfrom() { - _has_bits_[0] |= 0x00000010u; -} -inline void CertificateInfoV2::clear_has_privatekeyvalidfrom() { - _has_bits_[0] &= ~0x00000010u; -} -inline void CertificateInfoV2::clear_privatekeyvalidfrom() { - privatekeyvalidfrom_ = GOOGLE_LONGLONG(0); - clear_has_privatekeyvalidfrom(); -} -inline ::google::protobuf::int64 CertificateInfoV2::privatekeyvalidfrom() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.PrivateKeyValidFrom) - return privatekeyvalidfrom_; -} -inline void CertificateInfoV2::set_privatekeyvalidfrom(::google::protobuf::int64 value) { - set_has_privatekeyvalidfrom(); - privatekeyvalidfrom_ = value; - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.PrivateKeyValidFrom) -} - -// optional sfixed64 PrivateKeyValidTo = 6; -inline bool CertificateInfoV2::has_privatekeyvalidto() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void CertificateInfoV2::set_has_privatekeyvalidto() { - _has_bits_[0] |= 0x00000020u; -} -inline void CertificateInfoV2::clear_has_privatekeyvalidto() { - _has_bits_[0] &= ~0x00000020u; -} -inline void CertificateInfoV2::clear_privatekeyvalidto() { - privatekeyvalidto_ = GOOGLE_LONGLONG(0); - clear_has_privatekeyvalidto(); -} -inline ::google::protobuf::int64 CertificateInfoV2::privatekeyvalidto() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.PrivateKeyValidTo) - return privatekeyvalidto_; -} -inline void CertificateInfoV2::set_privatekeyvalidto(::google::protobuf::int64 value) { - set_has_privatekeyvalidto(); - privatekeyvalidto_ = value; - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.PrivateKeyValidTo) -} - -// optional string OrganizationName = 7; -inline bool CertificateInfoV2::has_organizationname() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void CertificateInfoV2::set_has_organizationname() { - _has_bits_[0] |= 0x00000040u; -} -inline void CertificateInfoV2::clear_has_organizationname() { - _has_bits_[0] &= ~0x00000040u; -} -inline void CertificateInfoV2::clear_organizationname() { - if (organizationname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - organizationname_->clear(); - } - clear_has_organizationname(); -} -inline const ::std::string& CertificateInfoV2::organizationname() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.OrganizationName) - return *organizationname_; -} -inline void CertificateInfoV2::set_organizationname(const ::std::string& value) { - set_has_organizationname(); - if (organizationname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - organizationname_ = new ::std::string; - } - organizationname_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.OrganizationName) -} -inline void CertificateInfoV2::set_organizationname(const char* value) { - set_has_organizationname(); - if (organizationname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - organizationname_ = new ::std::string; - } - organizationname_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.OrganizationName) -} -inline void CertificateInfoV2::set_organizationname(const char* value, size_t size) { - set_has_organizationname(); - if (organizationname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - organizationname_ = new ::std::string; - } - organizationname_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.OrganizationName) -} -inline ::std::string* CertificateInfoV2::mutable_organizationname() { - set_has_organizationname(); - if (organizationname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - organizationname_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.OrganizationName) - return organizationname_; -} -inline ::std::string* CertificateInfoV2::release_organizationname() { - clear_has_organizationname(); - if (organizationname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = organizationname_; - organizationname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_organizationname(::std::string* organizationname) { - if (organizationname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete organizationname_; - } - if (organizationname) { - set_has_organizationname(); - organizationname_ = organizationname; - } else { - clear_has_organizationname(); - organizationname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.OrganizationName) -} - -// optional string Inn = 8; -inline bool CertificateInfoV2::has_inn() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void CertificateInfoV2::set_has_inn() { - _has_bits_[0] |= 0x00000080u; -} -inline void CertificateInfoV2::clear_has_inn() { - _has_bits_[0] &= ~0x00000080u; -} -inline void CertificateInfoV2::clear_inn() { - if (inn_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inn_->clear(); - } - clear_has_inn(); -} -inline const ::std::string& CertificateInfoV2::inn() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.Inn) - return *inn_; -} -inline void CertificateInfoV2::set_inn(const ::std::string& value) { - set_has_inn(); - if (inn_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inn_ = new ::std::string; - } - inn_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.Inn) -} -inline void CertificateInfoV2::set_inn(const char* value) { - set_has_inn(); - if (inn_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inn_ = new ::std::string; - } - inn_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.Inn) -} -inline void CertificateInfoV2::set_inn(const char* value, size_t size) { - set_has_inn(); - if (inn_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inn_ = new ::std::string; - } - inn_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.Inn) -} -inline ::std::string* CertificateInfoV2::mutable_inn() { - set_has_inn(); - if (inn_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - inn_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.Inn) - return inn_; -} -inline ::std::string* CertificateInfoV2::release_inn() { - clear_has_inn(); - if (inn_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = inn_; - inn_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_inn(::std::string* inn) { - if (inn_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete inn_; - } - if (inn) { - set_has_inn(); - inn_ = inn; - } else { - clear_has_inn(); - inn_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.Inn) -} - -// optional string UserFirstName = 9; -inline bool CertificateInfoV2::has_userfirstname() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void CertificateInfoV2::set_has_userfirstname() { - _has_bits_[0] |= 0x00000100u; -} -inline void CertificateInfoV2::clear_has_userfirstname() { - _has_bits_[0] &= ~0x00000100u; -} -inline void CertificateInfoV2::clear_userfirstname() { - if (userfirstname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userfirstname_->clear(); - } - clear_has_userfirstname(); -} -inline const ::std::string& CertificateInfoV2::userfirstname() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.UserFirstName) - return *userfirstname_; -} -inline void CertificateInfoV2::set_userfirstname(const ::std::string& value) { - set_has_userfirstname(); - if (userfirstname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userfirstname_ = new ::std::string; - } - userfirstname_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.UserFirstName) -} -inline void CertificateInfoV2::set_userfirstname(const char* value) { - set_has_userfirstname(); - if (userfirstname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userfirstname_ = new ::std::string; - } - userfirstname_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.UserFirstName) -} -inline void CertificateInfoV2::set_userfirstname(const char* value, size_t size) { - set_has_userfirstname(); - if (userfirstname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userfirstname_ = new ::std::string; - } - userfirstname_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.UserFirstName) -} -inline ::std::string* CertificateInfoV2::mutable_userfirstname() { - set_has_userfirstname(); - if (userfirstname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userfirstname_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.UserFirstName) - return userfirstname_; -} -inline ::std::string* CertificateInfoV2::release_userfirstname() { - clear_has_userfirstname(); - if (userfirstname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = userfirstname_; - userfirstname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_userfirstname(::std::string* userfirstname) { - if (userfirstname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete userfirstname_; - } - if (userfirstname) { - set_has_userfirstname(); - userfirstname_ = userfirstname; - } else { - clear_has_userfirstname(); - userfirstname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.UserFirstName) -} - -// optional string UserMiddleName = 10; -inline bool CertificateInfoV2::has_usermiddlename() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void CertificateInfoV2::set_has_usermiddlename() { - _has_bits_[0] |= 0x00000200u; -} -inline void CertificateInfoV2::clear_has_usermiddlename() { - _has_bits_[0] &= ~0x00000200u; -} -inline void CertificateInfoV2::clear_usermiddlename() { - if (usermiddlename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usermiddlename_->clear(); - } - clear_has_usermiddlename(); -} -inline const ::std::string& CertificateInfoV2::usermiddlename() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.UserMiddleName) - return *usermiddlename_; -} -inline void CertificateInfoV2::set_usermiddlename(const ::std::string& value) { - set_has_usermiddlename(); - if (usermiddlename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usermiddlename_ = new ::std::string; - } - usermiddlename_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.UserMiddleName) -} -inline void CertificateInfoV2::set_usermiddlename(const char* value) { - set_has_usermiddlename(); - if (usermiddlename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usermiddlename_ = new ::std::string; - } - usermiddlename_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.UserMiddleName) -} -inline void CertificateInfoV2::set_usermiddlename(const char* value, size_t size) { - set_has_usermiddlename(); - if (usermiddlename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usermiddlename_ = new ::std::string; - } - usermiddlename_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.UserMiddleName) -} -inline ::std::string* CertificateInfoV2::mutable_usermiddlename() { - set_has_usermiddlename(); - if (usermiddlename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usermiddlename_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.UserMiddleName) - return usermiddlename_; -} -inline ::std::string* CertificateInfoV2::release_usermiddlename() { - clear_has_usermiddlename(); - if (usermiddlename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = usermiddlename_; - usermiddlename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_usermiddlename(::std::string* usermiddlename) { - if (usermiddlename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete usermiddlename_; - } - if (usermiddlename) { - set_has_usermiddlename(); - usermiddlename_ = usermiddlename; - } else { - clear_has_usermiddlename(); - usermiddlename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.UserMiddleName) -} - -// optional string UserLastName = 11; -inline bool CertificateInfoV2::has_userlastname() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void CertificateInfoV2::set_has_userlastname() { - _has_bits_[0] |= 0x00000400u; -} -inline void CertificateInfoV2::clear_has_userlastname() { - _has_bits_[0] &= ~0x00000400u; -} -inline void CertificateInfoV2::clear_userlastname() { - if (userlastname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userlastname_->clear(); - } - clear_has_userlastname(); -} -inline const ::std::string& CertificateInfoV2::userlastname() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.UserLastName) - return *userlastname_; -} -inline void CertificateInfoV2::set_userlastname(const ::std::string& value) { - set_has_userlastname(); - if (userlastname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userlastname_ = new ::std::string; - } - userlastname_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.UserLastName) -} -inline void CertificateInfoV2::set_userlastname(const char* value) { - set_has_userlastname(); - if (userlastname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userlastname_ = new ::std::string; - } - userlastname_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.UserLastName) -} -inline void CertificateInfoV2::set_userlastname(const char* value, size_t size) { - set_has_userlastname(); - if (userlastname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userlastname_ = new ::std::string; - } - userlastname_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.UserLastName) -} -inline ::std::string* CertificateInfoV2::mutable_userlastname() { - set_has_userlastname(); - if (userlastname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - userlastname_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.UserLastName) - return userlastname_; -} -inline ::std::string* CertificateInfoV2::release_userlastname() { - clear_has_userlastname(); - if (userlastname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = userlastname_; - userlastname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_userlastname(::std::string* userlastname) { - if (userlastname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete userlastname_; - } - if (userlastname) { - set_has_userlastname(); - userlastname_ = userlastname; - } else { - clear_has_userlastname(); - userlastname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.UserLastName) -} - -// optional string UserShortName = 12; -inline bool CertificateInfoV2::has_usershortname() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void CertificateInfoV2::set_has_usershortname() { - _has_bits_[0] |= 0x00000800u; -} -inline void CertificateInfoV2::clear_has_usershortname() { - _has_bits_[0] &= ~0x00000800u; -} -inline void CertificateInfoV2::clear_usershortname() { - if (usershortname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usershortname_->clear(); - } - clear_has_usershortname(); -} -inline const ::std::string& CertificateInfoV2::usershortname() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.UserShortName) - return *usershortname_; -} -inline void CertificateInfoV2::set_usershortname(const ::std::string& value) { - set_has_usershortname(); - if (usershortname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usershortname_ = new ::std::string; - } - usershortname_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.UserShortName) -} -inline void CertificateInfoV2::set_usershortname(const char* value) { - set_has_usershortname(); - if (usershortname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usershortname_ = new ::std::string; - } - usershortname_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.CertificateInfoV2.UserShortName) -} -inline void CertificateInfoV2::set_usershortname(const char* value, size_t size) { - set_has_usershortname(); - if (usershortname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usershortname_ = new ::std::string; - } - usershortname_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.CertificateInfoV2.UserShortName) -} -inline ::std::string* CertificateInfoV2::mutable_usershortname() { - set_has_usershortname(); - if (usershortname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - usershortname_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateInfoV2.UserShortName) - return usershortname_; -} -inline ::std::string* CertificateInfoV2::release_usershortname() { - clear_has_usershortname(); - if (usershortname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = usershortname_; - usershortname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void CertificateInfoV2::set_allocated_usershortname(::std::string* usershortname) { - if (usershortname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete usershortname_; - } - if (usershortname) { - set_has_usershortname(); - usershortname_ = usershortname; - } else { - clear_has_usershortname(); - usershortname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.CertificateInfoV2.UserShortName) -} - -// optional bool IsDefault = 13; -inline bool CertificateInfoV2::has_isdefault() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void CertificateInfoV2::set_has_isdefault() { - _has_bits_[0] |= 0x00001000u; -} -inline void CertificateInfoV2::clear_has_isdefault() { - _has_bits_[0] &= ~0x00001000u; -} -inline void CertificateInfoV2::clear_isdefault() { - isdefault_ = false; - clear_has_isdefault(); -} -inline bool CertificateInfoV2::isdefault() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateInfoV2.IsDefault) - return isdefault_; -} -inline void CertificateInfoV2::set_isdefault(bool value) { - set_has_isdefault(); - isdefault_ = value; - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.CertificateInfoV2.IsDefault) -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Proto -} // namespace Api -} // namespace Diadoc - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::Diadoc::Api::Proto::CertificateType> : ::google::protobuf::internal::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Diadoc::Api::Proto::CertificateType>() { - return ::Diadoc::Api::Proto::CertificateType_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_CertificateInfoV2_2eproto__INCLUDED diff --git a/src/protos/CertificateList.pb.cc b/src/protos/CertificateList.pb.cc deleted file mode 100644 index 00895ae..0000000 --- a/src/protos/CertificateList.pb.cc +++ /dev/null @@ -1,328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CertificateList.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "CertificateList.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace Diadoc { -namespace Api { -namespace Proto { - -namespace { - -const ::google::protobuf::Descriptor* CertificateList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CertificateList_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_CertificateList_2eproto() { - protobuf_AddDesc_CertificateList_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "CertificateList.proto"); - GOOGLE_CHECK(file != NULL); - CertificateList_descriptor_ = file->message_type(0); - static const int CertificateList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateList, certificates_), - }; - CertificateList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - CertificateList_descriptor_, - CertificateList::default_instance_, - CertificateList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CertificateList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(CertificateList)); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_CertificateList_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CertificateList_descriptor_, &CertificateList::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_CertificateList_2eproto() { - delete CertificateList::default_instance_; - delete CertificateList_reflection_; -} - -void protobuf_AddDesc_CertificateList_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::Diadoc::Api::Proto::protobuf_AddDesc_CertificateInfoV2_2eproto(); - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\025CertificateList.proto\022\020Diadoc.Api.Prot" - "o\032\027CertificateInfoV2.proto\"L\n\017Certificat" - "eList\0229\n\014Certificates\030\001 \003(\0132#.Diadoc.Api" - ".Proto.CertificateInfoV2", 144); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "CertificateList.proto", &protobuf_RegisterTypes); - CertificateList::default_instance_ = new CertificateList(); - CertificateList::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_CertificateList_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_CertificateList_2eproto { - StaticDescriptorInitializer_CertificateList_2eproto() { - protobuf_AddDesc_CertificateList_2eproto(); - } -} static_descriptor_initializer_CertificateList_2eproto_; - -// =================================================================== - -#ifndef _MSC_VER -const int CertificateList::kCertificatesFieldNumber; -#endif // !_MSC_VER - -CertificateList::CertificateList() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:Diadoc.Api.Proto.CertificateList) -} - -void CertificateList::InitAsDefaultInstance() { -} - -CertificateList::CertificateList(const CertificateList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:Diadoc.Api.Proto.CertificateList) -} - -void CertificateList::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CertificateList::~CertificateList() { - // @@protoc_insertion_point(destructor:Diadoc.Api.Proto.CertificateList) - SharedDtor(); -} - -void CertificateList::SharedDtor() { - if (this != default_instance_) { - } -} - -void CertificateList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CertificateList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CertificateList_descriptor_; -} - -const CertificateList& CertificateList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_CertificateList_2eproto(); - return *default_instance_; -} - -CertificateList* CertificateList::default_instance_ = NULL; - -CertificateList* CertificateList::New() const { - return new CertificateList; -} - -void CertificateList::Clear() { - certificates_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CertificateList::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:Diadoc.Api.Proto.CertificateList) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; - case 1: { - if (tag == 10) { - parse_Certificates: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_certificates())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_Certificates; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:Diadoc.Api.Proto.CertificateList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:Diadoc.Api.Proto.CertificateList) - return false; -#undef DO_ -} - -void CertificateList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:Diadoc.Api.Proto.CertificateList) - // repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; - for (int i = 0; i < this->certificates_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->certificates(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:Diadoc.Api.Proto.CertificateList) -} - -::google::protobuf::uint8* CertificateList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:Diadoc.Api.Proto.CertificateList) - // repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; - for (int i = 0; i < this->certificates_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->certificates(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:Diadoc.Api.Proto.CertificateList) - return target; -} - -int CertificateList::ByteSize() const { - int total_size = 0; - - // repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; - total_size += 1 * this->certificates_size(); - for (int i = 0; i < this->certificates_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->certificates(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CertificateList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CertificateList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CertificateList::MergeFrom(const CertificateList& from) { - GOOGLE_CHECK_NE(&from, this); - certificates_.MergeFrom(from.certificates_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CertificateList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CertificateList::CopyFrom(const CertificateList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CertificateList::IsInitialized() const { - - if (!::google::protobuf::internal::AllAreInitialized(this->certificates())) return false; - return true; -} - -void CertificateList::Swap(CertificateList* other) { - if (other != this) { - certificates_.Swap(&other->certificates_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata CertificateList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CertificateList_descriptor_; - metadata.reflection = CertificateList_reflection_; - return metadata; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Proto -} // namespace Api -} // namespace Diadoc - -// @@protoc_insertion_point(global_scope) diff --git a/src/protos/CertificateList.pb.h b/src/protos/CertificateList.pb.h deleted file mode 100644 index 232a07b..0000000 --- a/src/protos/CertificateList.pb.h +++ /dev/null @@ -1,178 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CertificateList.proto - -#ifndef PROTOBUF_CertificateList_2eproto__INCLUDED -#define PROTOBUF_CertificateList_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 2006000 -#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 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include "CertificateInfoV2.pb.h" -// @@protoc_insertion_point(includes) - -namespace Diadoc { -namespace Api { -namespace Proto { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_CertificateList_2eproto(); -void protobuf_AssignDesc_CertificateList_2eproto(); -void protobuf_ShutdownFile_CertificateList_2eproto(); - -class CertificateList; - -// =================================================================== - -class CertificateList : public ::google::protobuf::Message { - public: - CertificateList(); - virtual ~CertificateList(); - - CertificateList(const CertificateList& from); - - inline CertificateList& operator=(const CertificateList& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CertificateList& default_instance(); - - void Swap(CertificateList* other); - - // implements Message ---------------------------------------------- - - CertificateList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CertificateList& from); - void MergeFrom(const CertificateList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; - inline int certificates_size() const; - inline void clear_certificates(); - static const int kCertificatesFieldNumber = 1; - inline const ::Diadoc::Api::Proto::CertificateInfoV2& certificates(int index) const; - inline ::Diadoc::Api::Proto::CertificateInfoV2* mutable_certificates(int index); - inline ::Diadoc::Api::Proto::CertificateInfoV2* add_certificates(); - inline const ::google::protobuf::RepeatedPtrField< ::Diadoc::Api::Proto::CertificateInfoV2 >& - certificates() const; - inline ::google::protobuf::RepeatedPtrField< ::Diadoc::Api::Proto::CertificateInfoV2 >* - mutable_certificates(); - - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateList) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::google::protobuf::RepeatedPtrField< ::Diadoc::Api::Proto::CertificateInfoV2 > certificates_; - friend void protobuf_AddDesc_CertificateList_2eproto(); - friend void protobuf_AssignDesc_CertificateList_2eproto(); - friend void protobuf_ShutdownFile_CertificateList_2eproto(); - - void InitAsDefaultInstance(); - static CertificateList* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// CertificateList - -// repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; -inline int CertificateList::certificates_size() const { - return certificates_.size(); -} -inline void CertificateList::clear_certificates() { - certificates_.Clear(); -} -inline const ::Diadoc::Api::Proto::CertificateInfoV2& CertificateList::certificates(int index) const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.CertificateList.Certificates) - return certificates_.Get(index); -} -inline ::Diadoc::Api::Proto::CertificateInfoV2* CertificateList::mutable_certificates(int index) { - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.CertificateList.Certificates) - return certificates_.Mutable(index); -} -inline ::Diadoc::Api::Proto::CertificateInfoV2* CertificateList::add_certificates() { - // @@protoc_insertion_point(field_add:Diadoc.Api.Proto.CertificateList.Certificates) - return certificates_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::Diadoc::Api::Proto::CertificateInfoV2 >& -CertificateList::certificates() const { - // @@protoc_insertion_point(field_list:Diadoc.Api.Proto.CertificateList.Certificates) - return certificates_; -} -inline ::google::protobuf::RepeatedPtrField< ::Diadoc::Api::Proto::CertificateInfoV2 >* -CertificateList::mutable_certificates() { - // @@protoc_insertion_point(field_mutable_list:Diadoc.Api.Proto.CertificateList.Certificates) - return &certificates_; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Proto -} // namespace Api -} // namespace Diadoc - -#ifndef SWIG -namespace google { -namespace protobuf { - - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_CertificateList_2eproto__INCLUDED diff --git a/src/protos/Docflow/DocumentInfo.pb.cc b/src/protos/Docflow/DocumentInfo.pb.cc index 2a75593..f5dbf4d 100644 --- a/src/protos/Docflow/DocumentInfo.pb.cc +++ b/src/protos/Docflow/DocumentInfo.pb.cc @@ -204,10 +204,10 @@ void protobuf_AssignDesc_Docflow_2fDocumentInfo_2eproto() { sizeof(ContractDocumentInfo)); SupplementaryAgreementDocumentInfo_descriptor_ = file->message_type(7); static const int SupplementaryAgreementDocumentInfo_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, total_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, contracttype_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, contractnumber_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, contractdate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, contractdocumentdateandnumber_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, documentdateandnumber_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SupplementaryAgreementDocumentInfo, total_), }; SupplementaryAgreementDocumentInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -389,28 +389,31 @@ void protobuf_AddDesc_Docflow_2fDocumentInfo_2eproto() { "ber\030\002 \001(\0132/.Diadoc.Api.Proto.Docflow.Doc" "umentDateAndNumber\"C\n\024ContractDocumentIn" "fo\022\025\n\rContractPrice\030\001 \001(\t\022\024\n\014ContractTyp" - "e\030\002 \001(\t\"w\n\"SupplementaryAgreementDocumen" - "tInfo\022\r\n\005Total\030\001 \001(\t\022\024\n\014ContractType\030\002 \001" - "(\t\022\026\n\016ContractNumber\030\003 \001(\t\022\024\n\014ContractDa" - "te\030\004 \001(\t\"\366\001\n\035UniversalTransferDocumentIn" - "fo\022\r\n\005Total\030\001 \001(\t\022\013\n\003Vat\030\002 \001(\t\022\024\n\014Curren" - "cyCode\030\003 \001(\005\022\017\n\007Grounds\030\004 \001(\t\022:\n\010Functio" - "n\030\005 \002(\0162(.Diadoc.Api.Proto.Invoicing.Fun" - "ctionType\022V\n\035OriginalDocumentDateAndNumb" - "er\030\006 \001(\0132/.Diadoc.Api.Proto.Docflow.Docu" - "mentDateAndNumber\"\342\003\n\037UniversalCorrectio" - "nDocumentInfo\022\020\n\010TotalInc\030\001 \001(\t\022\020\n\010Total" - "Dec\030\002 \001(\t\022\016\n\006VatInc\030\003 \001(\t\022\016\n\006VatDec\030\004 \001(" - "\t\022\024\n\014CurrencyCode\030\005 \001(\005\022\017\n\007Grounds\030\006 \001(\t" - "\022:\n\010Function\030\007 \002(\0162(.Diadoc.Api.Proto.In" - "voicing.FunctionType\022V\n\035OriginalDocument" - "DateAndNumber\030\010 \001(\0132/.Diadoc.Api.Proto.D" - "ocflow.DocumentDateAndNumber\022^\n%Original" - "DocumentRevisionDateAndNumber\030\t \001(\0132/.Di" - "adoc.Api.Proto.Docflow.DocumentDateAndNu" - "mber\022`\n\'OriginalDocumentCorrectionDateAn" - "dNumber\030\n \001(\0132/.Diadoc.Api.Proto.Docflow" - ".DocumentDateAndNumber", 3102); + "e\030\002 \001(\t\"\361\001\n\"SupplementaryAgreementDocume" + "ntInfo\022\024\n\014ContractType\030\001 \001(\t\022V\n\035Contract" + "DocumentDateAndNumber\030\002 \002(\0132/.Diadoc.Api" + ".Proto.Docflow.DocumentDateAndNumber\022N\n\025" + "DocumentDateAndNumber\030\003 \002(\0132/.Diadoc.Api" + ".Proto.Docflow.DocumentDateAndNumber\022\r\n\005" + "Total\030\004 \001(\t\"\366\001\n\035UniversalTransferDocumen" + "tInfo\022\r\n\005Total\030\001 \001(\t\022\013\n\003Vat\030\002 \001(\t\022\024\n\014Cur" + "rencyCode\030\003 \001(\005\022\017\n\007Grounds\030\004 \001(\t\022:\n\010Func" + "tion\030\005 \002(\0162(.Diadoc.Api.Proto.Invoicing." + "FunctionType\022V\n\035OriginalDocumentDateAndN" + "umber\030\006 \001(\0132/.Diadoc.Api.Proto.Docflow.D" + "ocumentDateAndNumber\"\342\003\n\037UniversalCorrec" + "tionDocumentInfo\022\020\n\010TotalInc\030\001 \001(\t\022\020\n\010To" + "talDec\030\002 \001(\t\022\016\n\006VatInc\030\003 \001(\t\022\016\n\006VatDec\030\004" + " \001(\t\022\024\n\014CurrencyCode\030\005 \001(\005\022\017\n\007Grounds\030\006 " + "\001(\t\022:\n\010Function\030\007 \002(\0162(.Diadoc.Api.Proto" + ".Invoicing.FunctionType\022V\n\035OriginalDocum" + "entDateAndNumber\030\010 \001(\0132/.Diadoc.Api.Prot" + "o.Docflow.DocumentDateAndNumber\022^\n%Origi" + "nalDocumentRevisionDateAndNumber\030\t \001(\0132/" + ".Diadoc.Api.Proto.Docflow.DocumentDateAn" + "dNumber\022`\n\'OriginalDocumentCorrectionDat" + "eAndNumber\030\n \001(\0132/.Diadoc.Api.Proto.Docf" + "low.DocumentDateAndNumber", 3225); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "Docflow/DocumentInfo.proto", &protobuf_RegisterTypes); DocumentInfo::default_instance_ = new DocumentInfo(); @@ -1481,6 +1484,9 @@ void DocumentInfo::CopyFrom(const DocumentInfo& from) { bool DocumentInfo::IsInitialized() const { if ((_has_bits_[0] & 0x00020000) != 0x00020000) return false; + if (has_supplementaryagreementinfo()) { + if (!this->supplementaryagreementinfo().IsInitialized()) return false; + } if (has_universaltransferdocumentinfo()) { if (!this->universaltransferdocumentinfo().IsInitialized()) return false; } @@ -3849,10 +3855,10 @@ ::google::protobuf::Metadata ContractDocumentInfo::GetMetadata() const { // =================================================================== #ifndef _MSC_VER -const int SupplementaryAgreementDocumentInfo::kTotalFieldNumber; const int SupplementaryAgreementDocumentInfo::kContractTypeFieldNumber; -const int SupplementaryAgreementDocumentInfo::kContractNumberFieldNumber; -const int SupplementaryAgreementDocumentInfo::kContractDateFieldNumber; +const int SupplementaryAgreementDocumentInfo::kContractDocumentDateAndNumberFieldNumber; +const int SupplementaryAgreementDocumentInfo::kDocumentDateAndNumberFieldNumber; +const int SupplementaryAgreementDocumentInfo::kTotalFieldNumber; #endif // !_MSC_VER SupplementaryAgreementDocumentInfo::SupplementaryAgreementDocumentInfo() @@ -3862,6 +3868,8 @@ SupplementaryAgreementDocumentInfo::SupplementaryAgreementDocumentInfo() } void SupplementaryAgreementDocumentInfo::InitAsDefaultInstance() { + contractdocumentdateandnumber_ = const_cast< ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber*>(&::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::default_instance()); + documentdateandnumber_ = const_cast< ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber*>(&::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::default_instance()); } SupplementaryAgreementDocumentInfo::SupplementaryAgreementDocumentInfo(const SupplementaryAgreementDocumentInfo& from) @@ -3874,10 +3882,10 @@ SupplementaryAgreementDocumentInfo::SupplementaryAgreementDocumentInfo(const Sup void SupplementaryAgreementDocumentInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; - total_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); contracttype_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - contractnumber_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - contractdate_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + contractdocumentdateandnumber_ = NULL; + documentdateandnumber_ = NULL; + total_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -3887,19 +3895,15 @@ SupplementaryAgreementDocumentInfo::~SupplementaryAgreementDocumentInfo() { } void SupplementaryAgreementDocumentInfo::SharedDtor() { - if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete total_; - } if (contracttype_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete contracttype_; } - if (contractnumber_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete contractnumber_; - } - if (contractdate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete contractdate_; + if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete total_; } if (this != default_instance_) { + delete contractdocumentdateandnumber_; + delete documentdateandnumber_; } } @@ -3926,24 +3930,20 @@ SupplementaryAgreementDocumentInfo* SupplementaryAgreementDocumentInfo::New() co void SupplementaryAgreementDocumentInfo::Clear() { if (_has_bits_[0 / 32] & 15) { - if (has_total()) { - if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - total_->clear(); - } - } if (has_contracttype()) { if (contracttype_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { contracttype_->clear(); } } - if (has_contractnumber()) { - if (contractnumber_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractnumber_->clear(); - } + if (has_contractdocumentdateandnumber()) { + if (contractdocumentdateandnumber_ != NULL) contractdocumentdateandnumber_->::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::Clear(); } - if (has_contractdate()) { - if (contractdate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractdate_->clear(); + if (has_documentdateandnumber()) { + if (documentdateandnumber_ != NULL) documentdateandnumber_->::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::Clear(); + } + if (has_total()) { + if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + total_->clear(); } } } @@ -3961,66 +3961,58 @@ bool SupplementaryAgreementDocumentInfo::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string Total = 1; + // optional string ContractType = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_total())); + input, this->mutable_contracttype())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->total().data(), this->total().length(), + this->contracttype().data(), this->contracttype().length(), ::google::protobuf::internal::WireFormat::PARSE, - "total"); + "contracttype"); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_ContractType; + if (input->ExpectTag(18)) goto parse_ContractDocumentDateAndNumber; break; } - // optional string ContractType = 2; + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; case 2: { if (tag == 18) { - parse_ContractType: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_contracttype())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contracttype().data(), this->contracttype().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "contracttype"); + parse_ContractDocumentDateAndNumber: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_contractdocumentdateandnumber())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_ContractNumber; + if (input->ExpectTag(26)) goto parse_DocumentDateAndNumber; break; } - // optional string ContractNumber = 3; + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; case 3: { if (tag == 26) { - parse_ContractNumber: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_contractnumber())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contractnumber().data(), this->contractnumber().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "contractnumber"); + parse_DocumentDateAndNumber: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_documentdateandnumber())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_ContractDate; + if (input->ExpectTag(34)) goto parse_Total; break; } - // optional string ContractDate = 4; + // optional string Total = 4; case 4: { if (tag == 34) { - parse_ContractDate: + parse_Total: DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_contractdate())); + input, this->mutable_total())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contractdate().data(), this->contractdate().length(), + this->total().data(), this->total().length(), ::google::protobuf::internal::WireFormat::PARSE, - "contractdate"); + "total"); } else { goto handle_unusual; } @@ -4053,44 +4045,36 @@ bool SupplementaryAgreementDocumentInfo::MergePartialFromCodedStream( void SupplementaryAgreementDocumentInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) - // optional string Total = 1; - if (has_total()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->total().data(), this->total().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "total"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->total(), output); - } - - // optional string ContractType = 2; + // optional string ContractType = 1; if (has_contracttype()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->contracttype().data(), this->contracttype().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "contracttype"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->contracttype(), output); + 1, this->contracttype(), output); } - // optional string ContractNumber = 3; - if (has_contractnumber()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contractnumber().data(), this->contractnumber().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "contractnumber"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->contractnumber(), output); + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + if (has_contractdocumentdateandnumber()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->contractdocumentdateandnumber(), output); } - // optional string ContractDate = 4; - if (has_contractdate()) { + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + if (has_documentdateandnumber()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->documentdateandnumber(), output); + } + + // optional string Total = 4; + if (has_total()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contractdate().data(), this->contractdate().length(), + this->total().data(), this->total().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, - "contractdate"); + "total"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->contractdate(), output); + 4, this->total(), output); } if (!unknown_fields().empty()) { @@ -4103,18 +4087,7 @@ void SupplementaryAgreementDocumentInfo::SerializeWithCachedSizes( ::google::protobuf::uint8* SupplementaryAgreementDocumentInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) - // optional string Total = 1; - if (has_total()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->total().data(), this->total().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "total"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->total(), target); - } - - // optional string ContractType = 2; + // optional string ContractType = 1; if (has_contracttype()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->contracttype().data(), this->contracttype().length(), @@ -4122,29 +4095,32 @@ ::google::protobuf::uint8* SupplementaryAgreementDocumentInfo::SerializeWithCach "contracttype"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->contracttype(), target); + 1, this->contracttype(), target); } - // optional string ContractNumber = 3; - if (has_contractnumber()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contractnumber().data(), this->contractnumber().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "contractnumber"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->contractnumber(), target); + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + if (has_contractdocumentdateandnumber()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->contractdocumentdateandnumber(), target); } - // optional string ContractDate = 4; - if (has_contractdate()) { + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + if (has_documentdateandnumber()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->documentdateandnumber(), target); + } + + // optional string Total = 4; + if (has_total()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->contractdate().data(), this->contractdate().length(), + this->total().data(), this->total().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, - "contractdate"); + "total"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->contractdate(), target); + 4, this->total(), target); } if (!unknown_fields().empty()) { @@ -4159,32 +4135,32 @@ int SupplementaryAgreementDocumentInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string Total = 1; - if (has_total()) { + // optional string ContractType = 1; + if (has_contracttype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->total()); + this->contracttype()); } - // optional string ContractType = 2; - if (has_contracttype()) { + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + if (has_contractdocumentdateandnumber()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->contracttype()); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->contractdocumentdateandnumber()); } - // optional string ContractNumber = 3; - if (has_contractnumber()) { + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + if (has_documentdateandnumber()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->contractnumber()); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->documentdateandnumber()); } - // optional string ContractDate = 4; - if (has_contractdate()) { + // optional string Total = 4; + if (has_total()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->contractdate()); + this->total()); } } @@ -4214,17 +4190,17 @@ void SupplementaryAgreementDocumentInfo::MergeFrom(const ::google::protobuf::Mes void SupplementaryAgreementDocumentInfo::MergeFrom(const SupplementaryAgreementDocumentInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_total()) { - set_total(from.total()); - } if (from.has_contracttype()) { set_contracttype(from.contracttype()); } - if (from.has_contractnumber()) { - set_contractnumber(from.contractnumber()); + if (from.has_contractdocumentdateandnumber()) { + mutable_contractdocumentdateandnumber()->::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::MergeFrom(from.contractdocumentdateandnumber()); + } + if (from.has_documentdateandnumber()) { + mutable_documentdateandnumber()->::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::MergeFrom(from.documentdateandnumber()); } - if (from.has_contractdate()) { - set_contractdate(from.contractdate()); + if (from.has_total()) { + set_total(from.total()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -4243,16 +4219,17 @@ void SupplementaryAgreementDocumentInfo::CopyFrom(const SupplementaryAgreementDo } bool SupplementaryAgreementDocumentInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; return true; } void SupplementaryAgreementDocumentInfo::Swap(SupplementaryAgreementDocumentInfo* other) { if (other != this) { - std::swap(total_, other->total_); std::swap(contracttype_, other->contracttype_); - std::swap(contractnumber_, other->contractnumber_); - std::swap(contractdate_, other->contractdate_); + std::swap(contractdocumentdateandnumber_, other->contractdocumentdateandnumber_); + std::swap(documentdateandnumber_, other->documentdateandnumber_); + std::swap(total_, other->total_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); diff --git a/src/protos/Docflow/DocumentInfo.pb.h b/src/protos/Docflow/DocumentInfo.pb.h index f700716..2a0109f 100644 --- a/src/protos/Docflow/DocumentInfo.pb.h +++ b/src/protos/Docflow/DocumentInfo.pb.h @@ -1128,22 +1128,10 @@ class SupplementaryAgreementDocumentInfo : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // optional string Total = 1; - inline bool has_total() const; - inline void clear_total(); - static const int kTotalFieldNumber = 1; - inline const ::std::string& total() const; - inline void set_total(const ::std::string& value); - inline void set_total(const char* value); - inline void set_total(const char* value, size_t size); - inline ::std::string* mutable_total(); - inline ::std::string* release_total(); - inline void set_allocated_total(::std::string* total); - - // optional string ContractType = 2; + // optional string ContractType = 1; inline bool has_contracttype() const; inline void clear_contracttype(); - static const int kContractTypeFieldNumber = 2; + static const int kContractTypeFieldNumber = 1; inline const ::std::string& contracttype() const; inline void set_contracttype(const ::std::string& value); inline void set_contracttype(const char* value); @@ -1152,49 +1140,55 @@ class SupplementaryAgreementDocumentInfo : public ::google::protobuf::Message { inline ::std::string* release_contracttype(); inline void set_allocated_contracttype(::std::string* contracttype); - // optional string ContractNumber = 3; - inline bool has_contractnumber() const; - inline void clear_contractnumber(); - static const int kContractNumberFieldNumber = 3; - inline const ::std::string& contractnumber() const; - inline void set_contractnumber(const ::std::string& value); - inline void set_contractnumber(const char* value); - inline void set_contractnumber(const char* value, size_t size); - inline ::std::string* mutable_contractnumber(); - inline ::std::string* release_contractnumber(); - inline void set_allocated_contractnumber(::std::string* contractnumber); - - // optional string ContractDate = 4; - inline bool has_contractdate() const; - inline void clear_contractdate(); - static const int kContractDateFieldNumber = 4; - inline const ::std::string& contractdate() const; - inline void set_contractdate(const ::std::string& value); - inline void set_contractdate(const char* value); - inline void set_contractdate(const char* value, size_t size); - inline ::std::string* mutable_contractdate(); - inline ::std::string* release_contractdate(); - inline void set_allocated_contractdate(::std::string* contractdate); + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + inline bool has_contractdocumentdateandnumber() const; + inline void clear_contractdocumentdateandnumber(); + static const int kContractDocumentDateAndNumberFieldNumber = 2; + inline const ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber& contractdocumentdateandnumber() const; + inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* mutable_contractdocumentdateandnumber(); + inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* release_contractdocumentdateandnumber(); + inline void set_allocated_contractdocumentdateandnumber(::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* contractdocumentdateandnumber); + + // required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + inline bool has_documentdateandnumber() const; + inline void clear_documentdateandnumber(); + static const int kDocumentDateAndNumberFieldNumber = 3; + inline const ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber& documentdateandnumber() const; + inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* mutable_documentdateandnumber(); + inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* release_documentdateandnumber(); + inline void set_allocated_documentdateandnumber(::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* documentdateandnumber); + + // optional string Total = 4; + inline bool has_total() const; + inline void clear_total(); + static const int kTotalFieldNumber = 4; + inline const ::std::string& total() const; + inline void set_total(const ::std::string& value); + inline void set_total(const char* value); + inline void set_total(const char* value, size_t size); + inline ::std::string* mutable_total(); + inline ::std::string* release_total(); + inline void set_allocated_total(::std::string* total); // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) private: - inline void set_has_total(); - inline void clear_has_total(); inline void set_has_contracttype(); inline void clear_has_contracttype(); - inline void set_has_contractnumber(); - inline void clear_has_contractnumber(); - inline void set_has_contractdate(); - inline void clear_has_contractdate(); + inline void set_has_contractdocumentdateandnumber(); + inline void clear_has_contractdocumentdateandnumber(); + inline void set_has_documentdateandnumber(); + inline void clear_has_documentdateandnumber(); + inline void set_has_total(); + inline void clear_has_total(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; - ::std::string* total_; ::std::string* contracttype_; - ::std::string* contractnumber_; - ::std::string* contractdate_; + ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* contractdocumentdateandnumber_; + ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* documentdateandnumber_; + ::std::string* total_; friend void protobuf_AddDesc_Docflow_2fDocumentInfo_2eproto(); friend void protobuf_AssignDesc_Docflow_2fDocumentInfo_2eproto(); friend void protobuf_ShutdownFile_Docflow_2fDocumentInfo_2eproto(); @@ -3864,91 +3858,15 @@ inline void ContractDocumentInfo::set_allocated_contracttype(::std::string* cont // SupplementaryAgreementDocumentInfo -// optional string Total = 1; -inline bool SupplementaryAgreementDocumentInfo::has_total() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SupplementaryAgreementDocumentInfo::set_has_total() { - _has_bits_[0] |= 0x00000001u; -} -inline void SupplementaryAgreementDocumentInfo::clear_has_total() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SupplementaryAgreementDocumentInfo::clear_total() { - if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - total_->clear(); - } - clear_has_total(); -} -inline const ::std::string& SupplementaryAgreementDocumentInfo::total() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) - return *total_; -} -inline void SupplementaryAgreementDocumentInfo::set_total(const ::std::string& value) { - set_has_total(); - if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - total_ = new ::std::string; - } - total_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) -} -inline void SupplementaryAgreementDocumentInfo::set_total(const char* value) { - set_has_total(); - if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - total_ = new ::std::string; - } - total_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) -} -inline void SupplementaryAgreementDocumentInfo::set_total(const char* value, size_t size) { - set_has_total(); - if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - total_ = new ::std::string; - } - total_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) -} -inline ::std::string* SupplementaryAgreementDocumentInfo::mutable_total() { - set_has_total(); - if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - total_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) - return total_; -} -inline ::std::string* SupplementaryAgreementDocumentInfo::release_total() { - clear_has_total(); - if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = total_; - total_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void SupplementaryAgreementDocumentInfo::set_allocated_total(::std::string* total) { - if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete total_; - } - if (total) { - set_has_total(); - total_ = total; - } else { - clear_has_total(); - total_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) -} - -// optional string ContractType = 2; +// optional string ContractType = 1; inline bool SupplementaryAgreementDocumentInfo::has_contracttype() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void SupplementaryAgreementDocumentInfo::set_has_contracttype() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void SupplementaryAgreementDocumentInfo::clear_has_contracttype() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void SupplementaryAgreementDocumentInfo::clear_contracttype() { if (contracttype_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { @@ -4016,156 +3934,162 @@ inline void SupplementaryAgreementDocumentInfo::set_allocated_contracttype(::std // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractType) } -// optional string ContractNumber = 3; -inline bool SupplementaryAgreementDocumentInfo::has_contractnumber() const { - return (_has_bits_[0] & 0x00000004u) != 0; +// required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; +inline bool SupplementaryAgreementDocumentInfo::has_contractdocumentdateandnumber() const { + return (_has_bits_[0] & 0x00000002u) != 0; } -inline void SupplementaryAgreementDocumentInfo::set_has_contractnumber() { - _has_bits_[0] |= 0x00000004u; +inline void SupplementaryAgreementDocumentInfo::set_has_contractdocumentdateandnumber() { + _has_bits_[0] |= 0x00000002u; } -inline void SupplementaryAgreementDocumentInfo::clear_has_contractnumber() { - _has_bits_[0] &= ~0x00000004u; +inline void SupplementaryAgreementDocumentInfo::clear_has_contractdocumentdateandnumber() { + _has_bits_[0] &= ~0x00000002u; } -inline void SupplementaryAgreementDocumentInfo::clear_contractnumber() { - if (contractnumber_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractnumber_->clear(); - } - clear_has_contractnumber(); +inline void SupplementaryAgreementDocumentInfo::clear_contractdocumentdateandnumber() { + if (contractdocumentdateandnumber_ != NULL) contractdocumentdateandnumber_->::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::Clear(); + clear_has_contractdocumentdateandnumber(); } -inline const ::std::string& SupplementaryAgreementDocumentInfo::contractnumber() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractNumber) - return *contractnumber_; +inline const ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber& SupplementaryAgreementDocumentInfo::contractdocumentdateandnumber() const { + // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDocumentDateAndNumber) + return contractdocumentdateandnumber_ != NULL ? *contractdocumentdateandnumber_ : *default_instance_->contractdocumentdateandnumber_; } -inline void SupplementaryAgreementDocumentInfo::set_contractnumber(const ::std::string& value) { - set_has_contractnumber(); - if (contractnumber_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractnumber_ = new ::std::string; - } - contractnumber_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractNumber) +inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* SupplementaryAgreementDocumentInfo::mutable_contractdocumentdateandnumber() { + set_has_contractdocumentdateandnumber(); + if (contractdocumentdateandnumber_ == NULL) contractdocumentdateandnumber_ = new ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber; + // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDocumentDateAndNumber) + return contractdocumentdateandnumber_; } -inline void SupplementaryAgreementDocumentInfo::set_contractnumber(const char* value) { - set_has_contractnumber(); - if (contractnumber_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractnumber_ = new ::std::string; - } - contractnumber_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractNumber) +inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* SupplementaryAgreementDocumentInfo::release_contractdocumentdateandnumber() { + clear_has_contractdocumentdateandnumber(); + ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* temp = contractdocumentdateandnumber_; + contractdocumentdateandnumber_ = NULL; + return temp; } -inline void SupplementaryAgreementDocumentInfo::set_contractnumber(const char* value, size_t size) { - set_has_contractnumber(); - if (contractnumber_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractnumber_ = new ::std::string; +inline void SupplementaryAgreementDocumentInfo::set_allocated_contractdocumentdateandnumber(::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* contractdocumentdateandnumber) { + delete contractdocumentdateandnumber_; + contractdocumentdateandnumber_ = contractdocumentdateandnumber; + if (contractdocumentdateandnumber) { + set_has_contractdocumentdateandnumber(); + } else { + clear_has_contractdocumentdateandnumber(); } - contractnumber_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractNumber) + // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDocumentDateAndNumber) } -inline ::std::string* SupplementaryAgreementDocumentInfo::mutable_contractnumber() { - set_has_contractnumber(); - if (contractnumber_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractnumber_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractNumber) - return contractnumber_; + +// required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; +inline bool SupplementaryAgreementDocumentInfo::has_documentdateandnumber() const { + return (_has_bits_[0] & 0x00000004u) != 0; } -inline ::std::string* SupplementaryAgreementDocumentInfo::release_contractnumber() { - clear_has_contractnumber(); - if (contractnumber_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = contractnumber_; - contractnumber_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } +inline void SupplementaryAgreementDocumentInfo::set_has_documentdateandnumber() { + _has_bits_[0] |= 0x00000004u; } -inline void SupplementaryAgreementDocumentInfo::set_allocated_contractnumber(::std::string* contractnumber) { - if (contractnumber_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete contractnumber_; - } - if (contractnumber) { - set_has_contractnumber(); - contractnumber_ = contractnumber; +inline void SupplementaryAgreementDocumentInfo::clear_has_documentdateandnumber() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SupplementaryAgreementDocumentInfo::clear_documentdateandnumber() { + if (documentdateandnumber_ != NULL) documentdateandnumber_->::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber::Clear(); + clear_has_documentdateandnumber(); +} +inline const ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber& SupplementaryAgreementDocumentInfo::documentdateandnumber() const { + // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.DocumentDateAndNumber) + return documentdateandnumber_ != NULL ? *documentdateandnumber_ : *default_instance_->documentdateandnumber_; +} +inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* SupplementaryAgreementDocumentInfo::mutable_documentdateandnumber() { + set_has_documentdateandnumber(); + if (documentdateandnumber_ == NULL) documentdateandnumber_ = new ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber; + // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.DocumentDateAndNumber) + return documentdateandnumber_; +} +inline ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* SupplementaryAgreementDocumentInfo::release_documentdateandnumber() { + clear_has_documentdateandnumber(); + ::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* temp = documentdateandnumber_; + documentdateandnumber_ = NULL; + return temp; +} +inline void SupplementaryAgreementDocumentInfo::set_allocated_documentdateandnumber(::Diadoc::Api::Proto::Docflow::DocumentDateAndNumber* documentdateandnumber) { + delete documentdateandnumber_; + documentdateandnumber_ = documentdateandnumber; + if (documentdateandnumber) { + set_has_documentdateandnumber(); } else { - clear_has_contractnumber(); - contractnumber_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_documentdateandnumber(); } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractNumber) + // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.DocumentDateAndNumber) } -// optional string ContractDate = 4; -inline bool SupplementaryAgreementDocumentInfo::has_contractdate() const { +// optional string Total = 4; +inline bool SupplementaryAgreementDocumentInfo::has_total() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void SupplementaryAgreementDocumentInfo::set_has_contractdate() { +inline void SupplementaryAgreementDocumentInfo::set_has_total() { _has_bits_[0] |= 0x00000008u; } -inline void SupplementaryAgreementDocumentInfo::clear_has_contractdate() { +inline void SupplementaryAgreementDocumentInfo::clear_has_total() { _has_bits_[0] &= ~0x00000008u; } -inline void SupplementaryAgreementDocumentInfo::clear_contractdate() { - if (contractdate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractdate_->clear(); +inline void SupplementaryAgreementDocumentInfo::clear_total() { + if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + total_->clear(); } - clear_has_contractdate(); + clear_has_total(); } -inline const ::std::string& SupplementaryAgreementDocumentInfo::contractdate() const { - // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDate) - return *contractdate_; +inline const ::std::string& SupplementaryAgreementDocumentInfo::total() const { + // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) + return *total_; } -inline void SupplementaryAgreementDocumentInfo::set_contractdate(const ::std::string& value) { - set_has_contractdate(); - if (contractdate_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractdate_ = new ::std::string; +inline void SupplementaryAgreementDocumentInfo::set_total(const ::std::string& value) { + set_has_total(); + if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + total_ = new ::std::string; } - contractdate_->assign(value); - // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDate) + total_->assign(value); + // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) } -inline void SupplementaryAgreementDocumentInfo::set_contractdate(const char* value) { - set_has_contractdate(); - if (contractdate_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractdate_ = new ::std::string; +inline void SupplementaryAgreementDocumentInfo::set_total(const char* value) { + set_has_total(); + if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + total_ = new ::std::string; } - contractdate_->assign(value); - // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDate) + total_->assign(value); + // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) } -inline void SupplementaryAgreementDocumentInfo::set_contractdate(const char* value, size_t size) { - set_has_contractdate(); - if (contractdate_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractdate_ = new ::std::string; +inline void SupplementaryAgreementDocumentInfo::set_total(const char* value, size_t size) { + set_has_total(); + if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + total_ = new ::std::string; } - contractdate_->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDate) + total_->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) } -inline ::std::string* SupplementaryAgreementDocumentInfo::mutable_contractdate() { - set_has_contractdate(); - if (contractdate_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - contractdate_ = new ::std::string; +inline ::std::string* SupplementaryAgreementDocumentInfo::mutable_total() { + set_has_total(); + if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + total_ = new ::std::string; } - // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDate) - return contractdate_; + // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) + return total_; } -inline ::std::string* SupplementaryAgreementDocumentInfo::release_contractdate() { - clear_has_contractdate(); - if (contractdate_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { +inline ::std::string* SupplementaryAgreementDocumentInfo::release_total() { + clear_has_total(); + if (total_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; } else { - ::std::string* temp = contractdate_; - contractdate_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::std::string* temp = total_; + total_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); return temp; } } -inline void SupplementaryAgreementDocumentInfo::set_allocated_contractdate(::std::string* contractdate) { - if (contractdate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete contractdate_; +inline void SupplementaryAgreementDocumentInfo::set_allocated_total(::std::string* total) { + if (total_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete total_; } - if (contractdate) { - set_has_contractdate(); - contractdate_ = contractdate; + if (total) { + set_has_total(); + total_ = total; } else { - clear_has_contractdate(); - contractdate_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_total(); + total_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.ContractDate) + // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo.Total) } // ------------------------------------------------------------------- diff --git a/src/protos/Docflow/DocumentInfoV3.pb.cc b/src/protos/Docflow/DocumentInfoV3.pb.cc index d46e6d4..2dbb5b1 100644 --- a/src/protos/Docflow/DocumentInfoV3.pb.cc +++ b/src/protos/Docflow/DocumentInfoV3.pb.cc @@ -64,7 +64,7 @@ void protobuf_AssignDesc_Docflow_2fDocumentInfoV3_2eproto() { "Docflow/DocumentInfoV3.proto"); GOOGLE_CHECK(file != NULL); DocumentInfoV3_descriptor_ = file->message_type(0); - static const int DocumentInfoV3_offsets_[18] = { + static const int DocumentInfoV3_offsets_[19] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, fullversion_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, messagetype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, workflowid_), @@ -83,6 +83,7 @@ void protobuf_AssignDesc_Docflow_2fDocumentInfoV3_2eproto() { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, draftinfo_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, templateinfo_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, origin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DocumentInfoV3, editingsettingid_), }; DocumentInfoV3_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -330,7 +331,7 @@ void protobuf_AddDesc_Docflow_2fDocumentInfoV3_2eproto() { "s/Document.proto\032\016LockMode.proto\032\032Forwar" "dDocumentEvent.proto\032\027DocumentDirection." "proto\032\"Events/DiadocMessage-PostApi.prot" - "o\032\024CustomDataItem.proto\"\352\006\n\016DocumentInfo" + "o\032\024CustomDataItem.proto\"\206\007\n\016DocumentInfo" "V3\0222\n\013FullVersion\030\001 \002(\0132\035.Diadoc.Api.Pro" "to.FullVersion\022<\n\013MessageType\030\002 \002(\0162\'.Di" "adoc.Api.Proto.Documents.MessageType\022\022\n\n" @@ -352,40 +353,40 @@ void protobuf_AddDesc_Docflow_2fDocumentInfoV3_2eproto() { ".DocumentDraftInfo\022D\n\014TemplateInfo\030\021 \001(\013" "2..Diadoc.Api.Proto.Docflow.DocumentTemp" "lateInfo\0222\n\006Origin\030\022 \001(\0132\".Diadoc.Api.Pr" - "oto.Documents.Origin\"\351\001\n\024DocumentPartici" - "pants\022=\n\006Sender\030\001 \002(\0132-.Diadoc.Api.Proto" - ".Docflow.DocumentParticipant\022<\n\005Proxy\030\002 " - "\001(\0132-.Diadoc.Api.Proto.Docflow.DocumentP" - "articipant\022@\n\tRecipient\030\003 \001(\0132-.Diadoc.A" - "pi.Proto.Docflow.DocumentParticipant\022\022\n\n" - "IsInternal\030\004 \002(\010\":\n\023DocumentParticipant\022" - "\r\n\005BoxId\030\001 \002(\t\022\024\n\014DepartmentId\030\002 \001(\t\"w\n\r" - "DocumentLinks\0220\n\nInitialIds\030\001 \003(\0132\034.Diad" - "oc.Api.Proto.DocumentId\0224\n\016SubordinateId" - "s\030\002 \003(\0132\034.Diadoc.Api.Proto.DocumentId\"z\n" - "\nPacketInfo\022,\n\010LockMode\030\001 \002(\0162\032.Diadoc.A" - "pi.Proto.LockMode\022\020\n\010PacketId\030\002 \001(\t\022,\n\007A" - "ddedAt\030\003 \001(\0132\033.Diadoc.Api.Proto.Timestam" - "p\"\200\001\n\022DocumentLetterInfo\022\023\n\013IsEncrypted\030" - "\001 \002(\010\022E\n\025ForwardDocumentEvents\030\002 \003(\0132&.D" - "iadoc.Api.Proto.ForwardDocumentEvent\022\016\n\006" - "IsTest\030\003 \002(\010\"Y\n\021DocumentDraftInfo\022\022\n\nIsR" - "ecycled\030\001 \002(\010\022\020\n\010IsLocked\030\002 \002(\010\022\036\n\026Trans" - "formedToLetterIds\030\003 \003(\t\"\304\002\n\024DocumentTemp" - "lateInfo\022J\n\022LetterParticipants\030\001 \002(\0132..D" - "iadoc.Api.Proto.Docflow.DocumentParticip" - "ants\022\036\n\026TransformedToLetterIds\030\002 \003(\t\022Y\n\033" - "TemplateTransformationInfos\030\003 \003(\01324.Diad" - "oc.Api.Proto.Docflow.TemplateTransformat" - "ionInfo\022J\n\023TemplateRefusalInfo\030\004 \001(\0132-.D" - "iadoc.Api.Proto.Docflow.TemplateRefusalI" - "nfo\022\031\n\nIsReusable\030\005 \001(\010:\005false\"\213\001\n\032Templ" - "ateTransformationInfo\022\030\n\020TransformationI" - "d\030\001 \002(\t\022=\n\027TransformedToDocumentId\030\002 \001(\013" - "2\034.Diadoc.Api.Proto.DocumentId\022\024\n\014Author" - "UserId\030\003 \001(\t\"K\n\023TemplateRefusalInfo\022\r\n\005B" - "oxId\030\001 \002(\t\022\024\n\014AuthorUserId\030\002 \001(\t\022\017\n\007Comm" - "ent\030\003 \001(\t", 2449); + "oto.Documents.Origin\022\032\n\020EditingSettingId" + "\030\023 \001(\t:\000\"\351\001\n\024DocumentParticipants\022=\n\006Sen" + "der\030\001 \002(\0132-.Diadoc.Api.Proto.Docflow.Doc" + "umentParticipant\022<\n\005Proxy\030\002 \001(\0132-.Diadoc" + ".Api.Proto.Docflow.DocumentParticipant\022@" + "\n\tRecipient\030\003 \001(\0132-.Diadoc.Api.Proto.Doc" + "flow.DocumentParticipant\022\022\n\nIsInternal\030\004" + " \002(\010\":\n\023DocumentParticipant\022\r\n\005BoxId\030\001 \002" + "(\t\022\024\n\014DepartmentId\030\002 \001(\t\"w\n\rDocumentLink" + "s\0220\n\nInitialIds\030\001 \003(\0132\034.Diadoc.Api.Proto" + ".DocumentId\0224\n\016SubordinateIds\030\002 \003(\0132\034.Di" + "adoc.Api.Proto.DocumentId\"z\n\nPacketInfo\022" + ",\n\010LockMode\030\001 \002(\0162\032.Diadoc.Api.Proto.Loc" + "kMode\022\020\n\010PacketId\030\002 \001(\t\022,\n\007AddedAt\030\003 \001(\013" + "2\033.Diadoc.Api.Proto.Timestamp\"\200\001\n\022Docume" + "ntLetterInfo\022\023\n\013IsEncrypted\030\001 \002(\010\022E\n\025For" + "wardDocumentEvents\030\002 \003(\0132&.Diadoc.Api.Pr" + "oto.ForwardDocumentEvent\022\016\n\006IsTest\030\003 \002(\010" + "\"Y\n\021DocumentDraftInfo\022\022\n\nIsRecycled\030\001 \002(" + "\010\022\020\n\010IsLocked\030\002 \002(\010\022\036\n\026TransformedToLett" + "erIds\030\003 \003(\t\"\304\002\n\024DocumentTemplateInfo\022J\n\022" + "LetterParticipants\030\001 \002(\0132..Diadoc.Api.Pr" + "oto.Docflow.DocumentParticipants\022\036\n\026Tran" + "sformedToLetterIds\030\002 \003(\t\022Y\n\033TemplateTran" + "sformationInfos\030\003 \003(\01324.Diadoc.Api.Proto" + ".Docflow.TemplateTransformationInfo\022J\n\023T" + "emplateRefusalInfo\030\004 \001(\0132-.Diadoc.Api.Pr" + "oto.Docflow.TemplateRefusalInfo\022\031\n\nIsReu" + "sable\030\005 \001(\010:\005false\"\213\001\n\032TemplateTransform" + "ationInfo\022\030\n\020TransformationId\030\001 \002(\t\022=\n\027T" + "ransformedToDocumentId\030\002 \001(\0132\034.Diadoc.Ap" + "i.Proto.DocumentId\022\024\n\014AuthorUserId\030\003 \001(\t" + "\"K\n\023TemplateRefusalInfo\022\r\n\005BoxId\030\001 \002(\t\022\024" + "\n\014AuthorUserId\030\002 \001(\t\022\017\n\007Comment\030\003 \001(\t", 2477); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "Docflow/DocumentInfoV3.proto", &protobuf_RegisterTypes); DocumentInfoV3::default_instance_ = new DocumentInfoV3(); @@ -439,6 +440,7 @@ const int DocumentInfoV3::kLetterInfoFieldNumber; const int DocumentInfoV3::kDraftInfoFieldNumber; const int DocumentInfoV3::kTemplateInfoFieldNumber; const int DocumentInfoV3::kOriginFieldNumber; +const int DocumentInfoV3::kEditingSettingIdFieldNumber; #endif // !_MSC_VER DocumentInfoV3::DocumentInfoV3() @@ -484,6 +486,7 @@ void DocumentInfoV3::SharedCtor() { draftinfo_ = NULL; templateinfo_ = NULL; origin_ = NULL; + editingsettingid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -499,6 +502,9 @@ void DocumentInfoV3::SharedDtor() { if (customdocumentid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete customdocumentid_; } + if (editingsettingid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete editingsettingid_; + } if (this != default_instance_) { delete fullversion_; delete participants_; @@ -578,13 +584,18 @@ void DocumentInfoV3::Clear() { if (draftinfo_ != NULL) draftinfo_->::Diadoc::Api::Proto::Docflow::DocumentDraftInfo::Clear(); } } - if (_has_bits_[16 / 32] & 196608) { + if (_has_bits_[16 / 32] & 458752) { if (has_templateinfo()) { if (templateinfo_ != NULL) templateinfo_->::Diadoc::Api::Proto::Docflow::DocumentTemplateInfo::Clear(); } if (has_origin()) { if (origin_ != NULL) origin_->::Diadoc::Api::Proto::Documents::Origin::Clear(); } + if (has_editingsettingid()) { + if (editingsettingid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + editingsettingid_->clear(); + } + } } #undef OFFSET_OF_FIELD_ @@ -867,6 +878,23 @@ bool DocumentInfoV3::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(154)) goto parse_EditingSettingId; + break; + } + + // optional string EditingSettingId = 19 [default = ""]; + case 19: { + if (tag == 154) { + parse_EditingSettingId: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_editingsettingid())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->editingsettingid().data(), this->editingsettingid().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "editingsettingid"); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -1008,6 +1036,16 @@ void DocumentInfoV3::SerializeWithCachedSizes( 18, this->origin(), output); } + // optional string EditingSettingId = 19 [default = ""]; + if (has_editingsettingid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->editingsettingid().data(), this->editingsettingid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "editingsettingid"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 19, this->editingsettingid(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -1142,6 +1180,17 @@ ::google::protobuf::uint8* DocumentInfoV3::SerializeWithCachedSizesToArray( 18, this->origin(), target); } + // optional string EditingSettingId = 19 [default = ""]; + if (has_editingsettingid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->editingsettingid().data(), this->editingsettingid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "editingsettingid"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 19, this->editingsettingid(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -1262,6 +1311,13 @@ int DocumentInfoV3::ByteSize() const { this->origin()); } + // optional string EditingSettingId = 19 [default = ""]; + if (has_editingsettingid()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->editingsettingid()); + } + } // repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 8; total_size += 1 * this->metadata_size(); @@ -1359,6 +1415,9 @@ void DocumentInfoV3::MergeFrom(const DocumentInfoV3& from) { if (from.has_origin()) { mutable_origin()->::Diadoc::Api::Proto::Documents::Origin::MergeFrom(from.origin()); } + if (from.has_editingsettingid()) { + set_editingsettingid(from.editingsettingid()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -1427,6 +1486,7 @@ void DocumentInfoV3::Swap(DocumentInfoV3* other) { std::swap(draftinfo_, other->draftinfo_); std::swap(templateinfo_, other->templateinfo_); std::swap(origin_, other->origin_); + std::swap(editingsettingid_, other->editingsettingid_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); diff --git a/src/protos/Docflow/DocumentInfoV3.pb.h b/src/protos/Docflow/DocumentInfoV3.pb.h index 8209875..5570f16 100644 --- a/src/protos/Docflow/DocumentInfoV3.pb.h +++ b/src/protos/Docflow/DocumentInfoV3.pb.h @@ -273,6 +273,18 @@ class DocumentInfoV3 : public ::google::protobuf::Message { inline ::Diadoc::Api::Proto::Documents::Origin* release_origin(); inline void set_allocated_origin(::Diadoc::Api::Proto::Documents::Origin* origin); + // optional string EditingSettingId = 19 [default = ""]; + inline bool has_editingsettingid() const; + inline void clear_editingsettingid(); + static const int kEditingSettingIdFieldNumber = 19; + inline const ::std::string& editingsettingid() const; + inline void set_editingsettingid(const ::std::string& value); + inline void set_editingsettingid(const char* value); + inline void set_editingsettingid(const char* value, size_t size); + inline ::std::string* mutable_editingsettingid(); + inline ::std::string* release_editingsettingid(); + inline void set_allocated_editingsettingid(::std::string* editingsettingid); + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentInfoV3) private: inline void set_has_fullversion(); @@ -307,6 +319,8 @@ class DocumentInfoV3 : public ::google::protobuf::Message { inline void clear_has_templateinfo(); inline void set_has_origin(); inline void clear_has_origin(); + inline void set_has_editingsettingid(); + inline void clear_has_editingsettingid(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -330,6 +344,7 @@ class DocumentInfoV3 : public ::google::protobuf::Message { ::Diadoc::Api::Proto::Docflow::DocumentDraftInfo* draftinfo_; ::Diadoc::Api::Proto::Docflow::DocumentTemplateInfo* templateinfo_; ::Diadoc::Api::Proto::Documents::Origin* origin_; + ::std::string* editingsettingid_; friend void protobuf_AddDesc_Docflow_2fDocumentInfoV3_2eproto(); friend void protobuf_AssignDesc_Docflow_2fDocumentInfoV3_2eproto(); friend void protobuf_ShutdownFile_Docflow_2fDocumentInfoV3_2eproto(); @@ -2011,6 +2026,82 @@ inline void DocumentInfoV3::set_allocated_origin(::Diadoc::Api::Proto::Documents // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.DocumentInfoV3.Origin) } +// optional string EditingSettingId = 19 [default = ""]; +inline bool DocumentInfoV3::has_editingsettingid() const { + return (_has_bits_[0] & 0x00040000u) != 0; +} +inline void DocumentInfoV3::set_has_editingsettingid() { + _has_bits_[0] |= 0x00040000u; +} +inline void DocumentInfoV3::clear_has_editingsettingid() { + _has_bits_[0] &= ~0x00040000u; +} +inline void DocumentInfoV3::clear_editingsettingid() { + if (editingsettingid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + editingsettingid_->clear(); + } + clear_has_editingsettingid(); +} +inline const ::std::string& DocumentInfoV3::editingsettingid() const { + // @@protoc_insertion_point(field_get:Diadoc.Api.Proto.Docflow.DocumentInfoV3.EditingSettingId) + return *editingsettingid_; +} +inline void DocumentInfoV3::set_editingsettingid(const ::std::string& value) { + set_has_editingsettingid(); + if (editingsettingid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + editingsettingid_ = new ::std::string; + } + editingsettingid_->assign(value); + // @@protoc_insertion_point(field_set:Diadoc.Api.Proto.Docflow.DocumentInfoV3.EditingSettingId) +} +inline void DocumentInfoV3::set_editingsettingid(const char* value) { + set_has_editingsettingid(); + if (editingsettingid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + editingsettingid_ = new ::std::string; + } + editingsettingid_->assign(value); + // @@protoc_insertion_point(field_set_char:Diadoc.Api.Proto.Docflow.DocumentInfoV3.EditingSettingId) +} +inline void DocumentInfoV3::set_editingsettingid(const char* value, size_t size) { + set_has_editingsettingid(); + if (editingsettingid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + editingsettingid_ = new ::std::string; + } + editingsettingid_->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Diadoc.Api.Proto.Docflow.DocumentInfoV3.EditingSettingId) +} +inline ::std::string* DocumentInfoV3::mutable_editingsettingid() { + set_has_editingsettingid(); + if (editingsettingid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + editingsettingid_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:Diadoc.Api.Proto.Docflow.DocumentInfoV3.EditingSettingId) + return editingsettingid_; +} +inline ::std::string* DocumentInfoV3::release_editingsettingid() { + clear_has_editingsettingid(); + if (editingsettingid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = editingsettingid_; + editingsettingid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void DocumentInfoV3::set_allocated_editingsettingid(::std::string* editingsettingid) { + if (editingsettingid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete editingsettingid_; + } + if (editingsettingid) { + set_has_editingsettingid(); + editingsettingid_ = editingsettingid; + } else { + clear_has_editingsettingid(); + editingsettingid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:Diadoc.Api.Proto.Docflow.DocumentInfoV3.EditingSettingId) +} + // ------------------------------------------------------------------- // DocumentParticipants