bool CubeMap::_set(const StringName& p_name, const Variant& p_value) { if (p_name=="side/left") { set_side(SIDE_LEFT,p_value); } else if (p_name=="side/right") { set_side(SIDE_RIGHT,p_value); } else if (p_name=="side/bottom") { set_side(SIDE_BOTTOM,p_value); } else if (p_name=="side/top") { set_side(SIDE_TOP,p_value); } else if (p_name=="side/front") { set_side(SIDE_FRONT,p_value); } else if (p_name=="side/back") { set_side(SIDE_BACK,p_value); } else if (p_name=="flags") { set_flags(p_value); } else if (p_name=="storage") { storage=Storage(p_value.operator int()); } else if (p_name=="lossy_quality") { lossy_storage_quality=p_value; } else return false; return true; }
void PriceInfo::MergeFrom(const PriceInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_price()) { set_price(from.price()); } if (from.has_size()) { set_size(from.size()); } if (from.has_side()) { set_side(from.side()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); }
virtual void switch_side(side_number side){ set_side(side); }
bool PriceInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 price = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &price_))); set_has_price(); } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_size; break; } // required int32 size = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_size: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &size_))); set_has_size(); } else { goto handle_uninterpreted; } if (input->ExpectTag(24)) goto parse_side; break; } // required .acm.Side side = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_side: int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::acm::Side_IsValid(value)) { set_side(static_cast< ::acm::Side >(value)); } else { mutable_unknown_fields()->AddVarint(3, value); } } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ }
void ai_composite::switch_side(side_number side) { set_side(side); }