4 #ifndef PROTOBUF_ignition_2fmsgs_2frest_5flogin_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2frest_5flogin_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 32 #pragma GCC system_header 35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 38 #include <sys/sysmacros.h> 56 class IGNITION_MSGS_VISIBLE
RestLogin :
public ::google::protobuf::Message {
68 static const ::google::protobuf::Descriptor* descriptor();
69 static const RestLogin& default_instance();
77 RestLogin* New(::google::protobuf::Arena* arena)
const;
78 void CopyFrom(const ::google::protobuf::Message& from);
79 void MergeFrom(const ::google::protobuf::Message& from);
83 bool IsInitialized()
const;
86 bool MergePartialFromCodedStream(
87 ::google::protobuf::io::CodedInputStream* input);
88 void SerializeWithCachedSizes(
89 ::google::protobuf::io::CodedOutputStream* output)
const;
90 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91 bool deterministic, ::google::protobuf::uint8* output)
const;
93 return InternalSerializeWithCachedSizesToArray(
false, output);
99 void SetCachedSize(
int size)
const;
102 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
103 return _internal_metadata_.arena();
105 inline void* MaybeArenaPtr()
const {
106 return _internal_metadata_.raw_arena_ptr();
110 ::google::protobuf::Metadata GetMetadata()
const;
117 bool has_header()
const;
119 static const int kHeaderFieldNumber = 1;
120 const ::ignition::msgs::Header& header()
const;
127 static const int kIdFieldNumber = 2;
128 ::google::protobuf::uint32 id()
const;
129 void set_id(::google::protobuf::uint32 value);
133 static const int kUrlFieldNumber = 3;
134 const ::std::string& url()
const;
135 void set_url(const ::std::string& value);
136 void set_url(
const char* value);
137 void set_url(
const char* value,
size_t size);
143 void clear_username();
144 static const int kUsernameFieldNumber = 4;
145 const ::std::string& username()
const;
146 void set_username(const ::std::string& value);
147 void set_username(
const char* value);
148 void set_username(
const char* value,
size_t size);
151 void set_allocated_username(::
std::string* username);
154 void clear_password();
155 static const int kPasswordFieldNumber = 5;
156 const ::std::string& password()
const;
157 void set_password(const ::std::string& value);
158 void set_password(
const char* value);
159 void set_password(
const char* value,
size_t size);
162 void set_allocated_password(::
std::string* password);
167 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
168 bool _is_default_instance_;
170 ::google::protobuf::internal::ArenaStringPtr url_;
171 ::google::protobuf::internal::ArenaStringPtr username_;
172 ::google::protobuf::internal::ArenaStringPtr password_;
173 ::google::protobuf::uint32 id_;
174 mutable int _cached_size_;
179 void InitAsDefaultInstance();
187 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 192 return !_is_default_instance_ && header_ != NULL;
195 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
200 return header_ != NULL ? *header_ : *default_instance_->header_;
204 if (header_ == NULL) {
205 header_ = new ::ignition::msgs::Header;
244 url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
248 return url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
252 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
257 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
262 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
263 ::
std::string(reinterpret_cast<const char*>(value), size));
269 return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
274 return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
282 url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
288 username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
292 return username_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
301 username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
306 username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
307 ::
std::string(reinterpret_cast<const char*>(value), size));
313 return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
318 return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 if (username != NULL) {
326 username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username);
332 password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
336 return password_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
345 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
350 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
351 ::
std::string(reinterpret_cast<const char*>(value), size));
357 return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
362 return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 if (password != NULL) {
370 password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password);
374 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 390 #endif // PROTOBUF_ignition_2fmsgs_2frest_5flogin_2eproto__INCLUDED Definition: rest_login.pb.h:56
::std::string * release_url()
Definition: rest_login.pb.h:271
void clear_header()
Definition: rest_login.pb.h:194
void clear_username()
Definition: rest_login.pb.h:287
RestLogin * New() const
Definition: rest_login.pb.h:75
::std::string * release_username()
Definition: rest_login.pb.h:315
void clear_password()
Definition: rest_login.pb.h:331
::std::string * mutable_password()
Definition: rest_login.pb.h:354
void set_allocated_username(::std::string *username)
Definition: rest_login.pb.h:320
const ::ignition::msgs::Header & header() const
Definition: rest_login.pb.h:198
::std::string * mutable_url()
Definition: rest_login.pb.h:266
void set_username(const ::std::string &value)
Definition: rest_login.pb.h:294
::ignition::msgs::Header * mutable_header()
Definition: rest_login.pb.h:202
::std::string * release_password()
Definition: rest_login.pb.h:359
::ignition::msgs::Header * release_header()
Definition: rest_login.pb.h:210
void protobuf_ShutdownFile_ignition_2fmsgs_2frest_5flogin_2eproto()
::std::string * mutable_username()
Definition: rest_login.pb.h:310
::google::protobuf::uint32 id() const
Definition: rest_login.pb.h:232
std::shared_ptr< RestLogin > RestLoginSharedPtr
Definition: rest_login.pb.h:378
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_login.pb.h:217
const ::std::string & url() const
Definition: rest_login.pb.h:246
void set_allocated_password(::std::string *password)
Definition: rest_login.pb.h:364
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5flogin_2eproto()
RestLogin & operator=(const RestLogin &from)
Definition: rest_login.pb.h:63
void set_url(const ::std::string &value)
Definition: rest_login.pb.h:250
bool has_header() const
Definition: rest_login.pb.h:191
void clear_url()
Definition: rest_login.pb.h:243
int GetCachedSize() const
Definition: rest_login.pb.h:95
void protobuf_AssignDesc_ignition_2fmsgs_2frest_5flogin_2eproto()
void set_allocated_url(::std::string *url)
Definition: rest_login.pb.h:276
std::unique_ptr< RestLogin > RestLoginUniquePtr
Definition: rest_login.pb.h:376
std::unique_ptr< const RestLogin > ConstRestLoginUniquePtr
Definition: rest_login.pb.h:377
void set_password(const ::std::string &value)
Definition: rest_login.pb.h:338
std::shared_ptr< const RestLogin > ConstRestLoginSharedPtr
Definition: rest_login.pb.h:379
const ::std::string & password() const
Definition: rest_login.pb.h:334
void set_id(::google::protobuf::uint32 value)
Definition: rest_login.pb.h:236
void clear_id()
Definition: rest_login.pb.h:229
const ::std::string & username() const
Definition: rest_login.pb.h:290
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: rest_login.pb.h:92