int LoginRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional string wb_UUID = 1; if (has_wb_uuid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->wb_uuid()); } // optional uint32 channel = 2; if (has_channel()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->channel()); } // optional uint32 version = 3; if (has_version()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->version()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int Sess::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional string id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } // optional int32 type = 2; if (has_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->type()); } // optional int64 lasttime = 3; if (has_lasttime()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->lasttime()); } // optional string sessid = 4; if (has_sessid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->sessid()); } // optional int32 consvid = 5; if (has_consvid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->consvid()); } // optional string version = 6; if (has_version()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->version()); } } // repeated .gim.Pair kvs = 7; total_size += 1 * this->kvs_size(); for (int i = 0; i < this->kvs_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->kvs(i)); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
void LoginResponse::SharedDtor() { if (olduid_ != &::google::protobuf::internal::kEmptyString) { delete olduid_; } if (gamename_ != &::google::protobuf::internal::kEmptyString) { delete gamename_; } if (gamedownload_ != &::google::protobuf::internal::kEmptyString) { delete gamedownload_; } #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER if (this != &default_instance()) { #else if (this != default_instance_) { #endif delete address_; delete dailyrewarddata_; } } void LoginResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); }
int Person_PhoneNumber::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string number = 1; if (has_number()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->number()); } // optional .tutorial.Person.PhoneType type = 2 [default = HOME]; if (has_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); } } total_size += unknown_fields().size(); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int Port::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required int32 port_num = 1; if (has_port_num()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->port_num()); } // required string ip = 2; if (has_ip()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->ip()); } } 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; }
int SetRobotMaintenance::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required uint32 robot_number = 1; if (has_robot_number()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->robot_number()); } // required bool maintenance = 3; if (has_maintenance()) { total_size += 1 + 1; } // required .llsf_msgs.Team team_color = 4; if (has_team_color()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->team_color()); } } 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; }
int LanSearchRoomResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required int32 jsonID = 1; if (has_jsonid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->jsonid()); } } // repeated .message.LanSearchRoomResponse.room roomList = 2; total_size += 1 * this->roomlist_size(); for (int i = 0; i < this->roomlist_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->roomlist(i)); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int InputMessage::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required bool ahead = 1; if (has_ahead()) { total_size += 1 + 1; } // required bool back = 2; if (has_back()) { total_size += 1 + 1; } // required bool left = 3; if (has_left()) { total_size += 1 + 1; } // required bool right = 4; if (has_right()) { 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 Message::SharedDtor() { if (to_ != &::google::protobuf::internal::kEmptyString) { delete to_; } if (from_ != &::google::protobuf::internal::kEmptyString) { delete from_; } if (sn_ != &::google::protobuf::internal::kEmptyString) { delete sn_; } if (data_ != &::google::protobuf::internal::kEmptyString) { delete data_; } #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER if (this != &default_instance()) { #else if (this != default_instance_) { #endif } } void Message::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); }
int BattleResultResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required .message.BattleResultResponse.PlayerMatchResult result = 1; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->result()); } // optional .message.UpdateUserInfo selfInfo = 2; if (has_selfinfo()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->selfinfo()); } // optional .message.UpdateUserInfo tageterInfo = 3; if (has_tageterinfo()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->tageterinfo()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int PriceInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required int32 price = 1; if (has_price()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->price()); } // required int32 size = 2; if (has_size()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->size()); } // required .acm.Side side = 3; if (has_side()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->side()); } } 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; }
int AttentionMessage::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string message = 1; if (has_message()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->message()); } // optional float time_to_show = 2; if (has_time_to_show()) { total_size += 1 + 4; } // optional .llsf_msgs.Team team_color = 3; if (has_team_color()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->team_color()); } } 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; }
int MatchesProto::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional fixed64 imageLseq = 1; if (has_imagelseq()) { total_size += 1 + 8; } // optional fixed64 imageRseq = 2; if (has_imagerseq()) { total_size += 1 + 8; } } // repeated .sfm.DMatches matches = 3; total_size += 1 * this->matches_size(); for (int i = 0; i < this->matches_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->matches(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; }
int DriverStation::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required bool enabled = 1; if (has_enabled()) { total_size += 1 + 1; } // required .gazebo.msgs.DriverStation.State state = 2; if (has_state()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); } } 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; }
int UseBuffRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string did = 1; if (has_did()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->did()); } // required string targetUid = 2; if (has_targetuid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->targetuid()); } // required uint32 propId = 3; if (has_propid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->propid()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int MFNHashFilePlainProtobuf::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional uint32 hash_length_bytes = 1; if (has_hash_length_bytes()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->hash_length_bytes()); } } // repeated string hash_value = 2; total_size += 1 * this->hash_value_size(); for (int i = 0; i < this->hash_value_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->hash_value(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; }
int SimTimeSync::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required .llsf_msgs.Time sim_time = 1; if (has_sim_time()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->sim_time()); } // required float real_time_factor = 2; if (has_real_time_factor()) { total_size += 1 + 4; } // required bool paused = 3; if (has_paused()) { 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; }
int LanguageData_Language::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string key = 1; if (has_key()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->key()); } } // repeated .message.LanguageData.Statement statement = 2; total_size += 1 * this->statement_size(); for (int i = 0; i < this->statement_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->statement(i)); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int HeartbeatRequest::ByteSize() const { int total_size = 0; GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int LoginResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required .message.LoginResponse.LoginStatus status = 1; if (has_status()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); } // optional .message.NetAddress address = 2; if (has_address()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->address()); } // optional .message.DailyRewardSystemData dailyRewardData = 3; if (has_dailyrewarddata()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->dailyrewarddata()); } // optional string oldUid = 4; if (has_olduid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->olduid()); } // optional uint32 version = 5; if (has_version()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->version()); } // optional string gameName = 6; if (has_gamename()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->gamename()); } // optional string gameDownload = 7; if (has_gamedownload()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->gamedownload()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int UpdateUserInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional uint32 level = 1; if (has_level()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->level()); } // optional uint32 experience = 2; if (has_experience()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->experience()); } // optional uint32 winCount = 3 [default = 1]; if (has_wincount()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->wincount()); } // optional float winRate = 4 [default = 1]; if (has_winrate()) { total_size += 1 + 4; } // optional uint32 successionWinCount = 5; if (has_successionwincount()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->successionwincount()); } // optional int32 incomGolds = 6; if (has_incomgolds()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->incomgolds()); } // optional int32 bureauExperience = 7; if (has_bureauexperience()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bureauexperience()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int BuyGold::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional uint32 id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->id()); } // optional string name = 2; if (has_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional string describ = 3; if (has_describ()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->describ()); } // optional uint32 gold_Number = 4; if (has_gold_number()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->gold_number()); } // optional int32 money = 5; if (has_money()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->money()); } // optional string localName = 6; if (has_localname()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->localname()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int CSCreateRoomRequest::ByteSize() const { int total_size = 0; 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 HeartbeatRequest::SharedDtor() { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER if (this != &default_instance()) { #else if (this != default_instance_) { #endif } } void HeartbeatRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); }
int HeartbeatResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required .message.HeartbeatResponse.ResponseStatus status = 1; if (has_status()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
void BattleResultResponse::SharedDtor() { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER if (this != &default_instance()) { #else if (this != default_instance_) { #endif delete selfinfo_; delete tageterinfo_; } } void BattleResultResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); }
int LanguageData::ByteSize() const { int total_size = 0; // repeated .message.LanguageData.Language language = 1; total_size += 1 * this->language_size(); for (int i = 0; i < this->language_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->language(i)); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int RemoveFriendRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string friendUUID = 1; if (has_frienduuid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->frienduuid()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
int LanSearchRoomRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required int32 jsonID = 1; if (has_jsonid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->jsonid()); } } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; }
void BattleResultRequest::SharedDtor() { if (did_ != &::google::protobuf::internal::kEmptyString) { delete did_; } #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER if (this != &default_instance()) { #else if (this != default_instance_) { #endif } } void BattleResultRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); }